I have 3 times returned from a query in the time format they are: 00:31:36 00:32:58 00:11:59
I want to get an average of these times in the same format.
currently I am trying to use
date('H:i:s', array_sum(array_map('strtotime', $results->[6])) / count($results->[6]))
But the output I am getting is 19:00:00 If I increase the output to 'm/d/y H:i:s' I am getting 12/31/69 19:00:00. If I delete the 'strtotime', I still get the same output.
Thanks for your help