PHP计算年龄
//replace / with - so strtotime works$dob = strtotime(str_replace("/","-",$birthdayDate)); $tdate = time();$age = 0;while( $tdate > $dob = strtotime('+1 year', $dob)){ ++$age;}return $age;
return floor((time() - strtotime($birthdayDate))/31556926);
尚方宝剑之说
qq_遁去的一_1