echo "\$month: ".date(F,strtotime($month))."<br>"; you have escaped the $ by placing the \ in front of it. Remove it. "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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