php add date 1 year code example
Example 1: add a year php
$end = date('Y-m-d', strtotime('+5 years'));
Example 2: add 1 day php datetime
$date = new DateTime('2000-01-01');
$date->add(new DateInterval('P1D'));
$end = date('Y-m-d', strtotime('+5 years'));
$date = new DateTime('2000-01-01');
$date->add(new DateInterval('P1D'));