I need some help, I have already previously calculated my times for a weekly timesheet in PHP, not my question; is it possible to add these all together?
I tried to use the following function but i'm not sure this works. The aim is for each week to calculate how much time is spent in total in this format.
$time = "18 hours 13 minutes"; $time2 = "47 minutes"; $time3 = "1 hour"; $time4 = "1 hour"; $time5 = "1 hour"; $time6 = ""; $time7 = ""; $max_date=abs(strtotime($time) + strtotime($time2) + strtotime($time3) + strtotime($time4) + strtotime($time5) + strtotime($time6) + strtotime($time7));
So in all it should show 22 hours as the total.
Thats if this is possible?