如何在下个月获得当前日期[重复]

This question already has an answer here:

I've done some research over internet and i cannot find the right answer that closes to my problem. I'm just beginner in php and I don't understand advance programming yet. My problem is I want to get the current date in next month.

suppose: today is Feb 15 2014,

I want to get date

March 15 2014,

April 15 2014,

May 15 2014,

June 15 2014,

July 15 2014,

August 15 2014,

September 15 2014,

October 15 2014,

November 15 2014,

December 15 2014,

January 15 2015, and so on and so fourth.

</div>
$new_date = date('F d Y', strtotime('+1 month'));

or

for ($i = 1; $i <12; $i++){

  $new_date = date('F d Y', strtotime("+$i month"));
  echo $new_date;
}

Here is another solution:

$begin = new DateTime( '2014-03-15' );
$end = new DateTime( '2015-01-31' );

$interval = new DateInterval('P1M');
$daterange = new DatePeriod($begin, $interval ,$end);

foreach($daterange as $date){
    echo $date->format("F d Y") . "<br>";
}

or this if you want to do it without a end date:

$date= new DateTime( '2014-03-15' );

for($i = 1; $i < 10; $i++) {
    $date = $date->modify( '+1 month' ); 
    echo $date->format("F d Y") . "<br>";
}