note 22836 deleted from ref.calendar by didou

From: Date: Thu, 31 Jul 2003 14:29:54 +0000
Subject: note 22836 deleted from ref.calendar by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53091@lists.php.net to get a copy of this message
Note Submitter: karen@rndassociates.com ---- 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.

« previous php.notes (#53091) next »