title: add time in format h:i:s
body: <p>I have array like below:</p>
  
  <pre><code>array
  (
      [0] =&gt; 505:25:32
      [1] =&gt; 480:00:01
      [2] =&gt; 504:00:01
      [3] =&gt; 480:00:02
  )
  </code></pre>
  
  <p>I want to add it and get total time in <code>h:i:s</code>. I have thought of split this array into three</p>
  
  <pre><code>hour_array(
          [0] =&gt; 505
          [1] =&gt; 480
          [2] =&gt; 504
          [3] =&gt; 480
  )
  min_array(
          [0] =&gt; 25
          [1] =&gt; 00
          [2] =&gt; 00
          [3] =&gt; 00
  )
  sec_array(
          [0] =&gt;32
          [1] =&gt; 01
          [2] =&gt; 01
          [3] =&gt; 02
  )
  </code></pre>
  
  <p>then add each array individually and do sum of them later.
  but this solution seems bit lengthy its there another solution</p>