身份证号含义:
引用:https://blog.csdn.net/weixin_41888813/article/details/82457069
年龄,生效,星座:
引用:https://blog.csdn.net/qq_41654694/article/details/83305098
年龄的:PHP:
https://www.jb51.net/article/99245.htm
https://www.cnblogs.com/bhmmlxieliming/p/6391760.html
https://www.jb51.net/article/69396.htm
年龄:MySQL:
https://blog.csdn.net/weixin_41888813/article/details/81534553
https://blog.csdn.net/m0_38034994/article/details/79728267
https://www.jianshu.com/p/64b53c26bea1
https://blog.csdn.net/u012732259/article/details/41448663
php从身份证获取出生日期方法(兼容15位与18位身份证号):
$birthday = strlen($card)==15 ? ('19' . substr($card, 6, 6)) : substr($card, 6, 8);
echo $birthday
php从身份证获取性别方法:
$sex = substr($card, (strlen($card)==15 ? -2 : -1), 1) % 2 ? '1' : '0';
echo $sex//1为男 0为女