For this exact instance (ie, trying to get the current month, and next month) then all you need is:
<? $thisMonth = date(F,strtotime('today')); $nextMonth = date(F,strtotime('next month')); ?> Justin on 21/03/03 1:00 AM, shaun ([EMAIL PROTECTED]) wrote: > 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