Skip to content

All topics  /  PHP

How To Add Year To Current Date In Php?

PHP ·

Hi Guys,

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

we will show add year in current date php.this tutorial will give you example of add month to current date using php.

Example:


<?php
    $date = date('d/m/Y', strtotime('+1 years'));
    echo $date; 
?>

Output:

19/12/2021

It will help you...