Published on January 26, 2024By DeveloperBreeze
$birthdate = '1990-01-01';
$age = date_diff(date_create($birthdate), date_create('today'))->y;
echo $age;
$birthdate = '1990-01-01';
$age = date_diff(date_create($birthdate), date_create('today'))->y;
echo $age;
Comments
Please log in to leave a comment.