note 94867 modified in function.date by thiago

From: Date: Mon, 30 Nov 2009 12:07:25 +0000
Subject: note 94867 modified in function.date by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163403@lists.php.net to get a copy of this message
Not sure why this got ignored the first time, but this is an even simpler way to check leap year: <?php function isLeapYear($year) { return ((($year%4==0) && ($year%100)) || $year%400==0) ? (true):(false); } ?> --was-- @superpck -- not sure why this got ignored the first time, but this is an even simpler way to check leap year: function isLeapYear($year) { return ((($year%4==0) && ($year%100)) || $year%400==0) ? (true):(false); } http://php.net/manual/en/function.date.php

« previous php.notes (#163403) next »