note 26773 added to ref.calendar

From: Date: Tue, 12 Nov 2002 12:18:01 +0000
Subject: note 26773 added to ref.calendar
Groups: php.notes 
Request: Send a blank email to php-notes+get-39374@lists.php.net to get a copy of this message
Best performance: /* * Find the number of days in a month * Year is between 1 and 32767 inclusive * Month is between 1 and 12 inclusive */ function DayInMonth($month, $year) { var $daysInMonth = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); if ($month != 2) return $daysInMonth[$month - 1]; return (checkdate($month, 29, $year)) ? 29 : 28; } -- http://www.php.net/manual/en/ref.calendar.php http://master.php.net/manage/user-notes.php?action=edit+26773 http://master.php.net/manage/user-notes.php?action=delete+26773 http://master.php.net/manage/user-notes.php?action=reject+26773

« previous php.notes (#39374) next »