note 42188 modified in function.checkdate by vrana

From: Date: Tue, 17 Aug 2004 14:54:06 +0000
Subject: note 42188 modified in function.checkdate by vrana
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79721@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... <?php echo date("L", strtotime("YYYYMMDD")); ?> /marcus --was-- 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 http://php.net/manual/en/function.checkdate.php

« previous php.notes (#79721) next »