title: The correct formatting of Mysql time
body: <p>I want to save the time in the Mysql database. I wrote a script that generates time. 
  <strong>I have a problem with the correct generation of time</strong></p>
  
  <pre><code>&lt;?php
  $durs = array(
      '3:56',
      '1:11:00',
      '2:04:56'
  );
  
  foreach ($durs as $dur){
      echo date('H:i:s', strtotime($dur)).'&lt;br&gt;';
  }
  ?&gt;
  </code></pre>
  
  <p><strong>The above example displays date in the form 03:56:00 instead of 00:03:56.</strong></p>