You can use strtotime()
with a second parameter, like following:
strtotime('1 day 30 second', 0);
This will give you 86430
, which is the number of seconds in 1 day and 30 seconds.
(If the second parameter is omitted, the current timestamp (i.e. time()
) is used to add what is specified in the string, which leads to the big number.)