--TEST-- Test date_add() function : basic functionality --CREDITS-- Felix De Vliegher --FILE-- format($format) ); foreach($intervals as $interval) { date_add($d, new DateInterval($interval) ); var_dump( $d->format($format) ); } ?> --EXPECT-- *** Testing date_add() : basic functionality *** string(19) "2008-01-01 12:25:00" string(19) "2011-07-06 00:55:05" string(19) "2011-07-06 00:55:05" string(19) "2011-07-08 00:56:05" string(19) "2012-09-09 00:41:35"