Calculate age in PHP
$your_birthday = '1982-08-29'; $difference = date_diff(date_create(), date_create($your_birthday)); $age = $difference->format('%Y'); // 35
Short and sweet
Just finishing up brewing up some fresh ground comments...
Just finishing up brewing up some fresh ground comments...