Jump to content

next month


jeff5656

Recommended Posts

the following gives me November, which is what I want.

$curr_month = date (F);

 

Now how do I get NEXT month?  So it displays "December"?

I tried this but it doesn't work.  I have a bad feeling I need to use mktime but that gives me stomach aches trying to figure it out!

 

<?php
echo date (F);
$nextmonth = date("F")+1;
echo $lastmonth;
?>

Link to comment
https://forums.phpfreaks.com/topic/133561-next-month/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.