codice:
$tempo = 140;  // tempo in minuti
$ore = floor($tempo / 60);
$minuti = $tempo % 60;
echo "$ore:$minuti";