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
[duration] => PT2M3S
[dimension] => 2d
[definition] => sd
[caption] => false
Is there a way to convert this duration to a "H:i:s" format in PHP?
Thanks in advance for your help