Increase a month

From: Date: Thu, 20 Mar 2003 14:00:25 +0000
Subject: Increase a month
Groups: php.general 
Request: Send a blank email to php-general+get-140430@lists.php.net to get a copy of this message
Hi, could someone tell me why this: <?php $month = date(m); echo "\$month: ".date(F,strtotime($month))."<br>"; $month = $month + 1; echo "\$month: ".date(F,strtotime($month))."<br>"; ?> outputs this: $month: March $month: March surely it should be: $month: March $month: April Thanks in advance for your help.

« previous php.general (#140430) next »