/**
* Function returns a date in the future by increasing the days
*
* @param int $month
* @param int $year
* @param int $day
* @param int $numDays
* @return array
*/
function futureDate
($month,
$year,
$day,
$numDays) {
return explode('-',
date('Y-m-d',
mktime(0,
0,
0,
$month,
$day+
$numDays,
$year)));
}
// Example Use - Find a date 45 days in the future Starting with 2-15-2009
list($year,
$month,
$day) = futureDate
(2,
2009,
15,
45);
// Outputs 04-01-2009
echo $month .
"-" .
$day .
"-" .
$year;