0
Have 150 minutos
; how to convert it to stay 2h30min
?
For example, I was able to do a conversion using the code below, but it will return 2.55
where’s the mistake ?
$minutos = 150;
if($minutos > 60){
$exibe2 = $minutos / 60;
$exibe = $exibe2 . "min";
}else{
$exibe = "0:" . $minutos;
}
$hora_final = $exibe;
in this example you sent, happened what I quoted here @Sam
– Lucas Augusto