Add days to a date in PHP
Description
The following code shows how to add days to a date.
Example
<?php//from w w w . j ava2 s. c o m
$date = new Date();
$date->setDMY(28,4,2010);
$date->addDays(5);
$dcs = $date->getArray();
print_r($dcs);
?>
The following code shows how to add days to a date.
<?php//from w w w . j ava2 s. c o m
$date = new Date();
$date->setDMY(28,4,2010);
$date->addDays(5);
$dcs = $date->getArray();
print_r($dcs);
?>