title: Sum of Duration from Database Field (Duration)
body: <p>I am having issue in SUM of Time or Duration from my Database field. </p>
  
  <p>Suppose. I have 5 Records </p>
  
  <pre><code>1. 00:25:32
  2. 00:08:52
  3. 00:33:22
  4. 00:25:30
  5. 00:15:12
  </code></pre>
  
  <p>how to sum all the times with <code>php</code>.
  I spent a lot time on it but failed.</p>
  
  <p>I have tried this.</p>
  
  <pre><code>$time = "00:58:30";
  $time2 = "00:12:35";
  
  $secs = strtotime($time2)-strtotime("00:00:00");
  $result = date("H:i:s",strtotime($time)+$secs);
  echo $result;
  </code></pre>
  
  <p>But it not works good for multiple records </p>