[Solved] PHP time period “7 days, 18:50:19”
strtotime can parse a “period” format like that natively, the only key point is to also pass in 0 as the second parameter so that the result is relative to the unix epoch rather than the current time: $seconds = strtotime(‘7 days 18:50:19’, 0); echo $seconds; 672619 0 solved PHP time period “7 days, 18:50:19”