note 38048 added to function.getdate
| From: | php-general at lists dot php dot net | Date: | Sat, 06 Dec 2003 02:12:39 +0000 |
| Subject: | note 38048 added to function.getdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61468@lists.php.net to get a copy of this message | ||
In response the previous note about figuring out the last day of the month, yes there is a better
way:
function daysInMonth($month, $year)
{
return date("t",mktime(0, 0, 0, $month, 1, $year));
}
----
Manual Page -- http://www.php.net/manual/en/function.getdate.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38048
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38048&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38048&report=yes
Search -- http://master.php.net/manage/user-notes.php