How To Subtract Months To Current Date In Php?

Admin   PHP   193  2021-03-18 06:30:06

Hi Guys,

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

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

Example:

 

<?php

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

echo $date;

?>

Output:

 

25-11-2020

It will help you...