fork download
  1. <?php
  2. $total = 685;
  3. $horas = floor($total / 3600);
  4. $minutos = floor(($total - ($horas * 3600)) / 60);
  5. $segundos = floor($total % 60);
  6. echo $horas . ":" . $minutos . ":" . $segundos;
  7.  
  8. //https://pt.stackoverflow.com/q/75990/101
Success #stdin #stdout 0.01s 24588KB
stdin
Standard input is empty
stdout
0:11:25