add days in datetime php code example
Example 1: php date plus days
<?php
// PHP program to add days to $Date
// Declare a date
$date = "2019-05-10";
// Add days to date and display it
echo date('Y-m-d', strtotime($date. ' + 10 days'));
?>
Example 2: php datetime add 1 weeek
$date = new DateTime();
$date->modify('+1 day');
$date->modify('+5 week');