note 39585 added to function.cal-days-in-month
| From: | jimphp at simianstereo dot com | Date: | Tue, 03 Feb 2004 09:06:51 +0000 |
| Subject: | note 39585 added to function.cal-days-in-month | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64587@lists.php.net to get a copy of this message | ||
Id suggest the best way to get days in a month is to use
$inMonth = the month of the year of which you wish to know the number of days for
$inYear = the year!
date("j",mktime(0,0,0,$inMonth+1,0, $inYear))
simple.
----
Manual Page -- http://www.php.net/manual/en/function.cal-days-in-month.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39585
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39585&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39585&report=yes
Search -- http://master.php.net/manage/user-notes.php