sniperscope Posted June 8, 2009 Share Posted June 8, 2009 I want to convert minutes into hours but i don't know how(my math was terrible at school). Such as 133 minutes = 2 hours 13 minutes. Link to comment https://forums.phpfreaks.com/topic/161338-solved-hour-problem/ Share on other sites More sharing options...
Daniel0 Posted June 8, 2009 Share Posted June 8, 2009 $mins = 133; $hours = (int) ($mins / 60); $minutes = $mins % 60; echo "{$hours} hours, {$minutes} minutes"; Link to comment https://forums.phpfreaks.com/topic/161338-solved-hour-problem/#findComment-851386 Share on other sites More sharing options...
sniperscope Posted June 8, 2009 Author Share Posted June 8, 2009 Daniel0 i love you. ;D Link to comment https://forums.phpfreaks.com/topic/161338-solved-hour-problem/#findComment-851387 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.