How To Subtract days To Current Date In Php?

Admin   PHP   112  2021-03-18 06:40:08

Hi Guys,

In this example,I will learn you subtract days to current date in php.you can easy and simply subtract days to current date in php.

we will show subtract days in current date php.this tutorial will give you example of subtract days to current date using php.

Example:

 

<?php

$date = date('d-m-Y', strtotime('-1 day'));

echo $date;

?>

Output:

 

23-12-2020

It will help you...