note 62582 deleted from function.date by derick
| From: | derick@php.net | Date: | Sun, 11 Jun 2006 11:44:13 +0000 |
| Subject: | note 62582 deleted from function.date by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-114255@lists.php.net to get a copy of this message | ||
Note Submitter: parchambault AT philworks.com
----
a simple function to know if a year is a leap year !!
Â<?php
// format of $year = "yyyy" same as "date('Y')"
function isLeapYear($year) {
return !($year % 4) && (($year % 100) || !($year % 400));
}
?>