<?php
$tempo_total= "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;
PD9waHAKCiAkdGVtcG9fdG90YWw9ICI0OjQ0IjsKIAogICAgIGlmIChzdWJzdHJfY291bnQoJHRlbXBvX3RvdGFsLCAnOicpPT0yKXsKICAgICAgICAgJHRlbXBvX3NlZ3VuZG9zID0gKGludCkkdGVtcG9fdG90YWwqMzYwMCArIChpbnQpKHN0cnN0cigkdGVtcG9fdG90YWwsICc6JykpKjYwICsgc3Vic3RyKCR0ZW1wb190b3RhbCwgLTIpOwogICAgIH1lbHNlewogICAgICAgICAkdGVtcG9fc2VndW5kb3MgPSAoaW50KSR0ZW1wb190b3RhbCo2MCArIHN1YnN0cigkdGVtcG9fdG90YWwsIC0yKTsKICAgICB9CiAKICAgICBlY2hvICR0ZW1wb19zZWd1bmRvczs=