0

Possible Duplicate:
Add number of days to a date

I'm writing a function to insert the current date into the database, the code I use for that is

$data['created']    = date('Y-m-d H:i:s');

What I also want to do is add the date 7 days ahead of the current date.

How would I go about doing that?

Community
  • 1
  • 1
Cecil
  • 1,609
  • 5
  • 21
  • 26

0 Answers0