note 33107 deleted from ref.calendar by danbrown

From: Date: Sun, 20 Jul 2008 01:52:49 +0000
Subject: note 33107 deleted from ref.calendar by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141917@lists.php.net to get a copy of this message
Note Submitter: carlj at vibez dot ca ---- Why not do something like this, to find the number of days in a month? $monthNum = date("n"); // or any value from 1-12 $year = date("Y"); // or any value >= 1 $numDays = date("t",mktime(0,0,0,$monthNum,1,$year)) This will tell you if there is 28-31 days in a month

« previous php.notes (#141917) next »