通过身份证号获取性别

1、通过身份证号获取性别

   /*获取性别*/
        $num = substr($options['certNum'],(strlen($options['certNum'])==15 ? -2 : -1),1);
        $six = ($num%2) ? '1' : '0';
原文地址:https://www.cnblogs.com/520fyl/p/5813259.html