Überprüfen eines Datums. Wenn ich statt 12.12.2010 nun 1212.2010 übergebe, habe ich die Notice: Notice: Undefined offset:
Wie kann ich diese Warnung umgehen?
list ($d, $m, $y) = explode ( '.', $_GET['datum'] );
if ( ! checkdate ( $m, $d, $y ) )
{
print ( 'Datum ist ungültig!' );
}
else
{
print ( 'Datum ist gültig!' );
}
Andreas