- time: documentation ( source)
- str_replace: documentation ( source)
- strtotime: documentation ( source)
<?php
$dob = strtotime(str_replace("/","-",$birthdayDate));
$tdate = time();
$age = 0;
while( $tdate > $dob = strtotime('+1 year', $dob))
{
++$age;
}
return $age;
echo $page;