1、通过身份证号获取性别
/*获取性别*/ $num = substr($options['certNum'],(strlen($options['certNum'])==15 ? -2 : -1),1); $six = ($num%2) ? '1' : '0';