1You can use:
2----------------
3$minutes = 1510;
4$hours = intdiv($minutes, 60).':'. ($minutes % 60);
5!!! This only works with php >= v7.xx
6
7Previous answer:
8-------------------
9$minutes = 1510;
10$hours = floor($minutes / 60).':'.($minutes - floor($minutes / 60) * 60);