我试过这个:
$total_time_minutes = '132';
$total_time_hours = '26';
if($total_time_minutes > 60)
{
$time = strtotime( $minutes . ' minutes');
$time = date('H:i', $time);
$time = explode(':', $time);
$hours = $time[0];
$minutes = $time[1];
$total_time_hours += $hours;
$total_time_minutes = $minutes;
}
如果我从中输出 $total_time_hours 和 $total_time_minutes 它会给我:26:44,这是不正确的。
它应该给我 28:12,这里有什么问题?