note 99075 added to function.checkdate
| From: | austinputman at hotmail dot com | Date: | Mon, 26 Jul 2010 14:26:01 +0000 |
| Subject: | note 99075 added to function.checkdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171128@lists.php.net to get a copy of this message | ||
A smaller is_leap() function than gman at gmail dot com example.
<?php
function is_leap($year) {
return ($year%4 == 0 and $year%100 != 0 or $year%400 == 0);
}
?>
----
Server IP: 83.137.20.135
Probable Submitter: 195.240.3.150
----
Manual Page -- http://www.php.net/manual/en/function.checkdate.php
Edit -- https://master.php.net/note/edit/99075
Del: integrated -- https://master.php.net/note/delete/99075/integrated
Del: useless -- https://master.php.net/note/delete/99075/useless
Del: bad code -- https://master.php.net/note/delete/99075/bad+code
Del: spam -- https://master.php.net/note/delete/99075/spam
Del: non-english -- https://master.php.net/note/delete/99075/non-english
Del: in docs -- https://master.php.net/note/delete/99075/in+docs
Del: other reasons-- https://master.php.net/note/delete/99075
Reject -- https://master.php.net/note/reject/99075
Search -- https://master.php.net/manage/user-notes.php