当前位置:Gxlcms > PHP教程 > php根据身份证号码计算年龄_PHP教程

php根据身份证号码计算年龄_PHP教程

时间:2021-07-01 10:21:17 帮助过:15人阅读

代码:



(empty($id))  ''=strtotime(substr($id,6,8
$today=strtotime('today'
$diff=floor(($today-$date)/86400/365
$age=strtotime(substr($id,6,8).' +'.$diff.'years')>$today?($diff+1?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/714720.htmlTechArticle代码: ? (empty($id)) '' =strtotime(substr($id,6,8 $today=strtotime('today' $diff=floor(($today-$date)/86400/365 $age=strtotime(substr($id,6,8).' +'.$diff.'years')$today?($diff+1...

人气教程排行