note 109924 deleted from function.checkdate by danbrown
| From: | danbrown@php.net | Date: | Tue, 04 Sep 2012 14:28:12 +0000 |
| Subject: | note 109924 deleted from function.checkdate by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190488@lists.php.net to get a copy of this message | ||
Note Submitter: Shahzad
----
Try simplicity ;)
list($year, $month, $day) = sscanf($data, '%d-%d-%d');
if (!checkdate($month, $day, $year)) {
return FALSE;
}