No is_date() function?

From: Date: Wed, 25 Jul 2007 13:55:20 +0000
Subject: No is_date() function?
Groups: php.general 
Request: Send a blank email to php-general+get-259513@lists.php.net to get a copy of this message
Hi I wrote a serialization function to turn arbitrary PHP variables into Macintosh plist compatible XML but see that there is no "is_date" tester as there is for bool, object, array etc. Is there a relatively simple (and robust) way to detect if a variable is a date? For example: $person = array('name'=>'bob', 'sex'=>'male', 'date_of_birth'=> $someDateHere); Thanks for any help Ken

« previous php.general (#259513) next »