note 42188 added to function.checkdate

From: Date: Thu, 06 May 2004 21:31:41 +0000
Subject: note 42188 added to function.checkdate
Groups: php.notes 
Request: Send a blank email to php-notes+get-69290@lists.php.net to get a copy of this message
A better way to check if it is leapyear or not is to use the function date() with the string "L"... It will return 1 (true) if it's a leapyear, and 0 (false) if it's not... echo date("L", strtotime("YYYYMMDD")); /marcus ---- Manual Page -- http://www.php.net/manual/en/function.checkdate.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42188 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42188&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42188&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69290) next »