1$future_timestamp = strtotime("+1 month");
2$data = date('Y-m-d', $future_timestamp);
1 if(strtotime('2011-08-19 17:14:40') < strtotime('-30 days')) {
2 // this is true
3 }
4
1// function
2cal_days_in_month(calendar,month,year);
3//e.g.
4$d=cal_days_in_month(CAL_GREGORIAN,10,2005);
5echo "There was $d days in October 2005";