I am getting the duration of a video like 9:55 or 00:13:51 . I want to add these values in a loop in php
I have tried like
$t_duartion =0;
foreach ($learn_detail->video_det as $video_det){
$t_duartion += date("H:i:s",strtotime($video_det->duration));
}
But the result is not coming. Its not coming as hh:mm:ss format. How to achieve this guys in php.
Any body idea ?