add 3 days to date php code example
Example 1: php date strtotime add days
$n = date('Y-m-d', strtotime( $d . " +1 days"));
$n = date('Y-m-d', strtotime( $d . " +1 month"));
$n = date('Y-m-d', strtotime( $d . " +1 year"));
$n = date('Y-m-d', strtotime( $d . " -1 days"));
$n = date('Y-m-d', strtotime( $d . " -1 month"));
$n = date('Y-m-d', strtotime( $d . " -1 year"));
Example 2: 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'));
?>