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:[EMAIL PROTECTED] 
Sent: Thursday, March 20, 2003 4:00 PM
To: [EMAIL PROTECTED]
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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to