Question: how to find difference between two times in php?
Answer: <? php $time1 = strtotime('08:00:00'); $time2 = strtotime('09:30:00'); $difference = round(abs($time2 - $time1) / 3600,2); echo $difference; Note: The code above will round to minutes.