function get_age($birthday='1994-02-14'){ $date = new DateTime($birthday); $now = new DateTime(); $interval = $now->diff($date); return $interval->y; }