RE: [PHP] Increase a month
| From: | Boaz Yahav | Date: | Fri, 21 Mar 2003 20:44:52 +0000 |
| Subject: | RE: [PHP] Increase a month | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-140633@lists.php.net to get a copy of this message | ||
This can help :
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=3541
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-----Original Message-----
From: shaun [mailto:shaun@mania.plus.com]
Sent: Thursday, March 20, 2003 4:00 PM
To: php-general@lists.php.net
Subject: [PHP] Increase a month
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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php