欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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

程序员文章站 2022-05-30 14:28:09
...

代码:



(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...