I am insert a two time in database and how to find the difference to two times the result is show like h:s:m format i will try to find the difference of this time
$from_time = $worker->timefm; //08:30:00
$to_time= $worker->timeto; //17:00:00
$diff=$to_time-$from_time;
echo $diff; //9
The answer show 9 only ,the correct answer is 8:30 why this show only 9 how the answer show in time format how to solve this issue ? help me!! thanks in advance
i will try this codes
but not work