Add years to a Date in PHP
Description
The following code shows how to add years to a Date.
Example
<?php/* ww w. j a v a 2 s .com*/
$date = new Date();
$date->setDMY(28,4,2010);
$date->addYears(4);
$dcs = $date->getArray();
print_r($dcs);
?>