<?php $bithdayDate = "1993-08-20"; $tdate = strtotime(date("Y-m-d")); $age = 0; while( $tdate > $dob = strtotime('+1 year', $bithdayDate)) { ++$age; } echo $age;
You have javascript disabled. You will not be able to edit any code.