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. Quote 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"; Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/161338-solved-hour-problem/#findComment-851387 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.