note 33107 added to ref.calendar
| From: | carlj at vibez dot ca | Date: | Tue, 17 Jun 2003 05:28:06 +0000 |
| Subject: | note 33107 added to ref.calendar | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50456@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/ref.calendar.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33107
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33107&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33107&report=yes