note 106830 deleted from function.strtotime by danbrown
| From: | danbrown@php.net | Date: | Sun, 11 Dec 2011 19:11:10 +0000 |
| Subject: | note 106830 deleted from function.strtotime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-185029@lists.php.net to get a copy of this message | ||
Note Submitter: eric at whiskyvangoghgo dot com
----
The dateNextMonth() function by Ash (05-Nov-2010 05:24) has a bug. The $mdate array() requires a
14th value, of "31".
The script uses that array to find the number of days in the following month. When a December date
is inputted, the script looks for the number of days in month #13 (January, 31 days).