Add number of days to a date

asked16 years ago
last updated10 years ago
viewed407.9k times
Up Vote133Down Vote

I want to add number of days to current date: I am using following code:

$i=30;
echo $date = strtotime(date("Y-m-d", strtotime($date)) . " +".$i."days");

But instead of getting proper date i am getting this:

Please suggest.