can you please help me regarding on converting duration to milliseconds. I have a code below working but need to include the hours.
I do not know what is the best practice regarding this but please advise. Thanks in advance.
list($get_minutes, $get_seconds) = explode(':', '1:27:04'); $minutes = $get_minutes * 60; $seconds = $get_seconds % 60; $set_duration = ($minutes + $seconds);