PHP实现根据身份证获取年龄 Mengx - 2020-02-29 实例代码如下:function getAge($id){ # 1.从身份证中获取出生日期 $id = $id;//身份证 $birth_Date = strtotime(substr($id...