How do I get the month name after a given month. So for June, I would want July
I have tried:
$next_month = date('F',strtotime('June', "next month"));
This display January, which is obviously wrong, I am looking for July.
How would I then get the month before?
I have tried
$prev_month = date('F',strtotime('June - 1 month'));