note 102721 deleted from function.checkdate by danbrown
| From: | danbrown@php.net | Date: | Wed, 02 Mar 2011 14:38:15 +0000 |
| Subject: | note 102721 deleted from function.checkdate by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-177489@lists.php.net to get a copy of this message | ||
Note Submitter: peter dot poetzi at gmail dot com
----
<?php
function check_date($d,$m,$j){return
$m>0&&$m<13&&$d>0&&$d<($m-2?($m+($m>7))%2+31
:(!($j%400)||!($j%4)&&$j%100)+29);}
?>
(without the space after %2+31)