add 1 month to date php code example
Example 1: php date plus days
<?php
$date = "2019-05-10";
echo date('Y-m-d', strtotime($date. ' + 10 days'));
?>
Example 2: +1 month php
$time = strtotime("2010.12.11");
$final = date("Y-m-d", strtotime("+1 month", $time));
Example 3: add 6 months to date in php
$effectiveDate = date('Y-m-d', strtotime("+3 months", strtotime($effectiveDate)));
Example 4: php date today plus 1 month
$future_timestamp = strtotime("+1 month");
$data = date('Y-m-d', $future_timestamp);
Example 5: in date function + 1 month and - 1 day in php
<?php
$months = n;
$years = n;
echo date('Y-m-28', mktime(0, 0, 0, date('m')+$months, 1, date('Y') + $years));
?>