/** * @param $birthday 出生年月日(1992-1-3) * @return string 年龄 */ function countage($birthday){ $year=date('Y'); $month=date('m'); if(substr($month,0,1)==0){ $month=substr($month,1); } $day=date('d'); if(substr($day,0,1)==0){ $day=substr($day,1); } $arr=…