note 106830 added to function.strtotime

From: Date: Fri, 09 Dec 2011 18:56:19 +0000
Subject: note 106830 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-185007@lists.php.net to get a copy of this message
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). ---- Server IP: 69.147.83.197 Probable Submitter: 67.243.180.85 ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- https://master.php.net/note/edit/106830 Del: integrated -- https://master.php.net/note/delete/106830/integrated Del: useless -- https://master.php.net/note/delete/106830/useless Del: bad code -- https://master.php.net/note/delete/106830/bad+code Del: spam -- https://master.php.net/note/delete/106830/spam Del: non-english -- https://master.php.net/note/delete/106830/non-english Del: in docs -- https://master.php.net/note/delete/106830/in+docs Del: other reasons-- https://master.php.net/note/delete/106830 Reject -- https://master.php.net/note/reject/106830 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185007) next »