note 72695 added to function.date

From: Date: Tue, 30 Jan 2007 09:06:48 +0000
Subject: note 72695 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-122344@lists.php.net to get a copy of this message
The below code doesn't work. The $next_month variable, for instance, right now, will be March, even though today is January 30th. The reason is because one month from Jan. 30th is March. But that's not the next month. I would suggest using an array of Month names instead, with their respective number as the key. ---- Server IP: 64.71.164.2 Probable Submitter: 71.130.171.119 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- https://master.php.net/note/edit/72695 Del: integrated -- https://master.php.net/note/delete/72695/integrated Del: useless -- https://master.php.net/note/delete/72695/useless Del: bad code -- https://master.php.net/note/delete/72695/bad+code Del: spam -- https://master.php.net/note/delete/72695/spam Del: non-english -- https://master.php.net/note/delete/72695/non-english Del: in docs -- https://master.php.net/note/delete/72695/in+docs Del: other reasons-- https://master.php.net/note/delete/72695 Reject -- https://master.php.net/note/reject/72695 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#122344) next »