note 22836 added to ref.calendar

From: Date: Mon, 01 Jul 2002 21:58:30 +0000
Subject: note 22836 added to ref.calendar
Groups: php.notes 
Request: Send a blank email to php-notes+get-32477@lists.php.net to get a copy of this message
Find the number of days in a month: // Month $m = 2; // Year $y = 2000; // Seed it with 31 $daysinmonth = 31; while (checkdate($m, $daysinmonth, $y) == false) { $daysinmonth -= 1; } // Now $daysinmonth equals the correct number of days in the month. -- http://www.php.net/manual/en/ref.calendar.php http://master.php.net/manage/user-notes.php?action=edit+22836 http://master.php.net/manage/user-notes.php?action=delete+22836 http://master.php.net/manage/user-notes.php?action=reject+22836

« previous php.notes (#32477) next »