PHP average time from an array

后端 未结 4 529
逝去的感伤
逝去的感伤 2021-01-18 18:48

How do I work out the average time from an array of times.

I have an array that looks like this :

(\'17:29:53\',\'16:00:32\')

And I

4条回答
  •  我在风中等你
    2021-01-18 19:24

    1. Loop over all Entries and add times, converted to seconds
    2. Divide by length of Array and convert back to hh:mm:ss

提交回复
热议问题