Alters check
Ein Skript zum berechnen des Alters
|
Script: |
function getage($date) {
list($day, $month, $year) = explode('.', $date);
if ($year <= date('y')) {
$year += 2000;
} elseif ($year < 100) {
$year += 1900;
}
$age = date('Y') - $year;
if(($month > date('m')) || (($month == date('m')) && ($day > date('d'))))
$age--;
return $age;
}
|
|