09 September 2019

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>

No comments:

Post a Comment

How to fetch instagram posts data?

Fetch Instagram posts data by pasting this code in browser console. (() => { /* ====================================================...