I want to add and take an average of a few hours.
$cadena = '00:09:00,00:09:00,00:09:00,00:09:00,00:09:00';
$arr = explode(",",$cadena);
$total = strtotime('00:00:00');
for($i = 0; $i<count($arr);$i++)
{
$total = $total + strtotime($arr[$i]);
}
$total = $total / count($arr);
echo date('H:i:s',$total);
This brings me back 05:45:00 and I waited 00:09:00. What was the mistake: (