I'm playing around with dates, and I trying to add 20 days to today's date.
echo date('d') + 20;
Of course, if the day was the 1st of April, then the result would be '21'. But when the day is later in the month, it doesn't rollover to the next month's day. Rather it adds to the number.
If $var = '2007-04-24' , and I want to add 14 days to $var, how do I get it to state:
'2007-05-08' ?
Do I make sense?