Scroll to top

How to convert minutes in hours and minutes in php?

convert minutes in hours and minutes in php
<html>
<body>
<?php

$minutes=127;

$hours = floor($minutes / 60);

$min = ($minutes % 60);
echo $hours.”:”.$min ;

?>
</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *