There are many ways to
Calculate age in year month and day in php from date of birth.
One of these methods is given below. I have used this code in many of my projects.
$bday = new DateTime($date_of_birth); // Your date of birth
$today = new Datetime(date(‘m.d.y’)); $diff = $today->diff($bday); printf(‘ %d years, %d month, %d days’, $diff->y, $diff->m, $diff->d);