title: Calculate Total time from array in php if total time greater than 24 hours
body: <p>I want to get the sum of the time in array. There are a lot of questions asked before related this question. Only problem this solution work the only sum is less than 24 hours. After 24 hours it will start at 00:00:00. How do I get more than 24 hours as total?</p>
  
  <pre><code>&lt;?php
  $total = [
  '00:02:55',
  '00:07:56',
  '01:03:32',
  '15:13:34',
  '02:13:44',
  '03:08:53',
  '13:13:54'
   ];
  
  $sum = strtotime('00:00:00');
  $sum2=0;
  foreach ($total as $v){
    $sum1=strtotime($v)-$sum;
    $sum2 = $sum2+$sum1;
  }
  $sum3=$sum+$sum2;
  echo date("H:i:s",$sum3);
  ?&gt;
  </code></pre>
  
  <p>RESULT</p>
  
  <pre><code>11:04:28
  </code></pre>
  
  <p>Expected result</p>
  
  <pre><code>35:04:28
  </code></pre>
  
  <p><a href="https://3v4l.org/QDiVc" rel="nofollow noreferrer">DEMO LINK</a></p>