title: Output is in seconds. convert to hh:mm:ss format in php
body: <ol>
  <li><p>My output is in the format of 290.52262423327 seconds. How can i change this to 00:04:51?</p></li>
  <li><p>The same output i want to show in seconds and in HH:MM:SS format, so if it is seconds, i want to show only 290.52 seconds.(only two integers after decimal point)? how can i do this?</p></li>
  </ol>
  
  <p>I am working in php and the output is present in <code>$time</code> variable. want to change this <code>$time</code> into <code>$newtime</code> with HH:MM:SS and <code>$newsec</code> as 290.52.</p>
  
  <p>Thanks :)</p>