Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 878
  • Last Modified:

print next month

How can I print "next month" as the full name format. i.e. March
0
petewinter
Asked:
petewinter
1 Solution
 
Beverley PortlockCommented:
You probably want a mix of strtotime and date like so

$nextMonth = date("F", strtotime("NOW +1 MONTH") )

See

http://www.php.net/strtotime
http://www.php.net/date

0
 
petewinterAuthor Commented:
Many thanks
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now