note 78758 deleted from function.checkdate by felipe
| From: | felipe@php.net | Date: | Sun, 16 Dec 2007 11:33:22 +0000 |
| Subject: | note 78758 deleted from function.checkdate by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133663@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
Reason: 5
----
For daniel at mejta dot net
Here is an even simpler and more efficient way of getting the number of days in a month :
$month = 11;
$year = 2007;
$daysinmonth = date("t", mktime(0, 0, 0, $month, 1, $year));