I'm trying to show an age from this code:
$dob = $entrantInfo['dobYear'].'-'.$entrantInfo['dobMonth'].'-'.$entrantInfo['dobDay'];
$age = date_diff(date_create($dob), date_create('today'))->y;
echo $age;
but it's not working, tried different kind of tutorials but I'm still having trouble, what should I do? Cheers