/ Published in: PHP
Takes the seconds, and returns minutes. Will wrap it in a function is anyone is interested. Example: 92s -> 1m 32s
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$seconds = 60; echo "seconds = $seconds<br />"; if($start_seconds <60) { $minutes =""; $seconds = $start_seconds; } else { $seconds = $start_seconds - $minutes*60; $minutes = "$minutes"."m"; $seconds = $seconds."s"; } echo "$minutes $seconds";
URL: tricksbycinger.blogspot.com