I am facing a strange issue with incrementing date with one month for following case
For date input as 2014-01-31
I am getting 2014-03-03
while it should "2014-02-28"
I am using following code
$time = strtotime("2014-01-31");
$final = date("Y-m-d", strtotime("+1 month", $time));