How To Subtract Year To Current Date In Php?
Hi Guys,
In this example,I will learn you subtract year to current date in php.you can easy and simply subtract year to current date in php.
we will show subtract year in current date php.this tutorial will give you example of subtract year to current date using php.
Example:
<?php
$date = date('d-m-Y', strtotime('-1 year'));
echo $date;
?>
Output:
26-12-2019
It will help you...
- How To Use Php Conditional Statement Example
- How to Check if String Contains Regex in PHP?
- PHP Array_column() Function Example
- PHP Generate List of Random Numbers Between 0 and 100 Example
- How to User Login with Facebook in PHP?
- How to Explode Every Character into Array Using PHP Example?
- PHP Form Validation Tutorial
- PHP Convert XML to JSON Example