<?php
$tempo_total= "30:4:44";
$tempo_segundos = (int
)$tempo_total*3600 + (int
)(strstr($tempo_total, ':'))*60 + substr($tempo_total, -2); }else{
$tempo_segundos = (int
)$tempo_total*60 + substr($tempo_total, -2); }
echo $tempo_segundos;
PD9waHAKCiAkdGVtcG9fdG90YWw9ICIzMDo0OjQ0IjsKICAgICAKICAgICBpZiAoc3Vic3RyX2NvdW50KCR0ZW1wb190b3RhbCwgJzonKT09Mil7CiAgICAgICAgICR0ZW1wb19zZWd1bmRvcyA9IChpbnQpJHRlbXBvX3RvdGFsKjM2MDAgKyAoaW50KShzdHJzdHIoJHRlbXBvX3RvdGFsLCAnOicpKSo2MCArIHN1YnN0cigkdGVtcG9fdG90YWwsIC0yKTsKICAgICB9ZWxzZXsKICAgICAgICAgJHRlbXBvX3NlZ3VuZG9zID0gKGludCkkdGVtcG9fdG90YWwqNjAgKyBzdWJzdHIoJHRlbXBvX3RvdGFsLCAtMik7CiAgICAgfQogICAgIAogICAgIGVjaG8gJHRlbXBvX3NlZ3VuZG9zOw==