title: Converting Youtube Data API V3 video duration format to standard time in PHP
body: <p>I'm, getting this array from a youtube API request, but the duration format is very rare in my opinion. Why didn't they just throw seconds in there? In any case this is the array</p>
  
  <pre><code>[duration] =&gt; PT2M3S
  [dimension] =&gt; 2d
  [definition] =&gt; sd
  [caption] =&gt; false
  </code></pre>
  
  <p>Is there a way to convert this duration to a "H:i:s" format in PHP?</p>
  
  <p>Thanks in advance for your help</p>