I am trying to write a function that will add time stamps together to get a sum of all. For example:11:30 + 12:00 + 15:35 = 39:05
I am unsure of how to accomplish this. I have included code below that I have tried but it does not give the desired result:
$TotalTime = strtotime($data['TotalSunday']) + strtotime($data['TotalMonday'])
+ strtotime($data['TotalTuesday'])
+ strtotime($data['TotalWednesday']) + strtotime($data['TotalThursday'])
+ strtotime($data['TotalFriday']) + strtotime($data['TotalSaturday']);
$data['TotalTime'] = gmdate("h:i", $TotalTime);