Convert a PT time format to seconds using PHP
The received duration/time format from YouTube's API is this format: PT1H1M6S How can I convert this format into seconds using PHP?
0 upvotes
View original discussion ↗
The received duration/time format from YouTube's API is this format: PT1H1M6S How can I convert this format into seconds using PHP?
Comments
Sign in or sign up to comment and upvote.
No comments yet.