Method 1 : Use DateTime class as bellow
$date = new DateTime();
$date->modify('+1 days')->format('Y-m-d');
Method 2: Use strtotime function in date function as bellow
date('Y-m-d',strtotime('+1 days'));
You can use any one method from above example.
Method 1 : Use DateTime class as bellow
$date = new DateTime();
$date->modify('+1 days')->format('Y-m-d');
Method 2: Use strtotime function in date function as bellow
date('Y-m-d',strtotime('+1 days'));
You can use any one method from above example.