могу функцию дать!
function age($birthday) {
$birthday_timestamp = strtotime($birthday);
$age = date('Y') - date('Y', $birthday_timestamp);
if (date('md', $birthday_timestamp) > date('md')) {
$age--;
}
return $age;
}echo 'age '.age($user['yearofbirth'].'-'.$user['monthb'].'-'.$user['dayb']);