note 93269 deleted from function.date by danbrown
| From: | danbrown@php.net | Date: | Mon, 31 Aug 2009 21:07:37 +0000 |
| Subject: | note 93269 deleted from function.date by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160093@lists.php.net to get a copy of this message | ||
Note Submitter: cleber89[ate]gmail[dot]com
----
It's Nice mr. critic at hot dot ee, but you can't forget to check witch day will be the
last of month.
I.E.: When is 2009.08.31, your loop will gerate: 32, 33, 34, 35, 36 and 37 as the days of the
week...
You must check this with date("t"); that indicate the number of days of a month.
Cheers,
Cléber Oliveira