calcul age php code example
Example: age date de naissance php
function age($date) {
$age = date('Y') - $date;
if (date('md') < date('md', strtotime($date))) {
return $age - 1;
}
return $age;
}