I am currently converting minutes to hours & minutes by using this function:
function minToHourMin($time) {
$minutes = $time%60;
$hours = floor($time/60);
return $hours . ':' . $minutes;
}
However, it doesn't work as expected when displaying the minutes that are < 10.
For example running the function with 61 minutes would return:
1:1 instead of the intended 1:01
Thanks