note 44419 deleted from function.strtotime by derick

From: Date: Sun, 14 Aug 2005 11:48:45 +0000
Subject: note 44419 deleted from function.strtotime by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93587@lists.php.net to get a copy of this message
Note Submitter: viazenetti ---- Another note concerning the 'next' syntax. In 4.2.2 the following code did the expected <? $myDate = strtotime('next month', $myDate); ?> Since 4.3.3 the result is the month after the next month. For example when myDate was February, the 'next month' would be April instead of March as you would expect. A workaround that works in 4.2. ans 4.3. is this: <? $myDate = strtotime('+1 month', $myDate); ?>

« previous php.notes (#93587) next »