$date = "2017-12-31";
echo date("Y-m-d", strtotime($date . " +5 days"));
Strtotime() can translate some sentences to actions. See example 1
solved Add +1 or more day to DATETIME in php eaven if that day is in a different month [closed]
$date = "2017-12-31";
echo date("Y-m-d", strtotime($date . " +5 days"));
Strtotime() can translate some sentences to actions. See example 1
solved Add +1 or more day to DATETIME in php eaven if that day is in a different month [closed]