<?php
function age($date)
{
$date=explode('.',$date);
$m=date('m');
$year=date('Y')-$date[2]-1;
if ($m>$date[1])
$year++;
if ($m==$date[1])
if (date('d')>=$date[0])
$year++;
return $year;
}
?>
<?php
function age($date)
{
$date=explode('.',$date);
$m=date('m');
$year=date('Y')-$date[2]-1;
if ($m>$date[1])
$year++;
if ($m==$date[1])
if (date('d')>=$date[0])
$year++;
return $year;
}
?>