Mine
public text v1 · immutable<?php
function MkeSec($time) {
$t = explode(':', $time);
return ($t[0]*3600)+($t[1]*60)+$t[2];
}
$str = '10:20:32';
echo 'Før: '. $str .'<br>Etter'. MkeSec($str);
?><?php
function MkeSec($time) {
$t = explode(':', $time);
return ($t[0]*3600)+($t[1]*60)+$t[2];
}
$str = '10:20:32';
echo 'Før: '. $str .'<br>Etter'. MkeSec($str);
?>