note 77089 deleted from function.checkdate by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 08:00:21 +0000 |
| Subject: | note 77089 deleted from function.checkdate by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196713@lists.php.net to get a copy of this message | ||
Note Submitter: brenig code
----
<?php
/**
* check a date combo of the 2
*/
function checkData($date)
{
if (!isset($date) || $date=="")
{
return false;
}
list($dd,$mm,$yy)=explode("/",$date);
if ($dd!="" && $mm!="" && $yy!="")
{
if (is_numeric($yy) && is_numeric($mm) && is_numeric($dd))
{
return checkdate($mm,$dd,$yy);
}
}
return false;
}
?>