All pastes #806545 Raw Edit

Mine

public text v1 · immutable
·published 2007-12-05 11:19 UTC
rendered paste body
<?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);
?>