At this moment I have the difference of hours to work but as I have the difference in hours, that is, from 11:00 a.m. to 12:30 p.m., the difference is 1:30 p.m. and I enter 1.30, but I wanted it to enter 1.50 .
I want the difference of hours in units, not hours.
$inicio = new DateTime($horai);
$fim = new DateTime($horaf);
$intervalo = $inicio->diff($fim);
$dhora = $intervalo->format('%H.%i');