📅  最后修改于: 2022-03-11 14:53:38.285000             🧑  作者: Mango
代码示例1
function age($date) {
$age = date('Y') - $date;
if (date('md') < date('md', strtotime($date))) {
return $age - 1;
}
return $age;
}