on-internet
← Community

Convert a PT time format to seconds using PHP

Stack Overflow ·

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.