strtotime () also supports some date / time arithmetic.
$ts = strtotime('2009-01-14 06:38:18 -750 seconds'); echo date('Ymd H:i:s', $ts);
or for example
$ts = strtotime('2009-01-14 06:38:18 next monday'); echo date('Ymd H:i:s', $ts);
prints 2009-01-19 00:00:00
source share