Web lists-archives.com

Re: [PHP] detecting leap years?




> On Jan 19, 2018, at 5:36 PM, Aziz Saleh <azizsaleh@xxxxxxxxx> wrote:
> 
> function is_leap_year($year) {
> 
> 	
> return ((($year % 4) == 0) && ((($year % 100) != 0) || (($year % 400) == 0)));
> }

Thank you;
Jeff k


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php