--TEST-- Test date_sub() function : basic functionality --CREDITS-- Felix De Vliegher --FILE-- format($format) ); foreach($intervals as $interval) { date_sub($d, new DateInterval($interval) ); var_dump( $d->format($format) ); } ?> ===DONE=== --EXPECT-- *** Testing date_sub() : basic functionality *** string(19) "2008-01-01 12:25:00" string(19) "2004-06-26 23:54:55" string(19) "2004-06-26 23:54:55" string(19) "2004-06-24 23:53:55" string(19) "2003-04-24 00:08:25" ===DONE===