I want to add 2 time variable in php. I use below code but it returns a big number. how can I have a time like (15:20:00) at the end?
code :
$time1="10:00:00";
$time2="05:20:00";
$sum = strtotime($time1)+strtotime($time2);
echo date("H:i:s",$sum);
Expected result: 15:20:00