note 39044 deleted from function.checkdate by aidan
| From: | aidan@php.net | Date: | Thu, 10 Feb 2005 05:31:54 +0000 |
| Subject: | note 39044 deleted from function.checkdate by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-84762@lists.php.net to get a copy of this message | ||
Note Submitter: alex at urbi dot com dot br
----
You can use this function to check if a year is leap or not:
<?php
if (checkdate(2,29,$current_year)) {
echo "$current_year is a leap year !<br>\n";
} else {
echo "$current_year is NOT a leap year !<br>\n";
}
?>
It's straightforward... :)