note 93269 added to function.date
| From: | cleber89 | Date: | Mon, 31 Aug 2009 21:05:41 +0000 |
| Subject: | note 93269 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160092@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 201.6.242.41
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- https://master.php.net/note/edit/93269
Del: integrated -- https://master.php.net/note/delete/93269/integrated
Del: useless -- https://master.php.net/note/delete/93269/useless
Del: bad code -- https://master.php.net/note/delete/93269/bad+code
Del: spam -- https://master.php.net/note/delete/93269/spam
Del: non-english -- https://master.php.net/note/delete/93269/non-english
Del: in docs -- https://master.php.net/note/delete/93269/in+docs
Del: other reasons-- https://master.php.net/note/delete/93269
Reject -- https://master.php.net/note/reject/93269
Search -- https://master.php.net/manage/user-notes.php