how to add 10 days to current date in php code example
Example 1: how to add extra days from a date php
<?php
$date = date('Y M d h:i:s')
$new_date = Carbon::parse($date->addDays(1);
$date = date('Y M d h:i:s')
echo $new_date = date('Y M d h:i:s', strtotime($date. '+1 day'));
?>
Example 2: add 7 days to date php
$date = "Mar 03, 2011";
$date = strtotime($date);
$date = strtotime("+7 day", $date);
echo date('M d, Y', $date);
Example 3: Add days to date in PHP
$date = new DateTime('2020-11-24');
$date->add(new DateInterval("P9D"));
echo $date->format('Y-m-d');