I'm not entirely sure what you're trying to do, but if you want to ensure that $total_hours contains the correct amount of hours, even if $total_minutes is greater than 60, try this:
$total_hours += int($total_minutes / 60); $total_minutes = $total_minutes % 60;
Is this what you wanted?
In reply to Re: Totaling a list of times
by tomhukins
in thread Totaling a list of times
by nlafferty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |