function get_age( $date ) {
$age = date('Y') - $date;
if (date('md') < date('md', strtotime($date))) {
return $age - 1;
}
return $age;
}
function get_age($birthday='1994-02-14'){
$date = new DateTime($birthday);
$now = new DateTime();
$interval = $now->diff($date);
return $interval->y;
}