<?php
$times = array('24:10','8:25','6:45','7:05','7:00','0:30');
$seconds = 0;
foreach ( $times as $time )
{
$seconds += $g * 3600;
$seconds += $i * 60;
}
$hours = floor( $seconds / 3600 ); $seconds -= $hours * 3600;
$minutes = floor( $seconds / 60 );
echo "{$hours}:{$minutes}";
PD9waHAKCgkkdGltZXMgPSBhcnJheSgnMjQ6MTAnLCc4OjI1JywnNjo0NScsJzc6MDUnLCc3OjAwJywnMDozMCcpOwoJCgkkc2Vjb25kcyA9IDA7CgkKCWZvcmVhY2ggKCAkdGltZXMgYXMgJHRpbWUgKQoJewoJbGlzdCggJGcsICRpICkgPSBleHBsb2RlKCAnOicsICR0aW1lICk7Cgkkc2Vjb25kcyArPSAkZyAqIDM2MDA7Cgkkc2Vjb25kcyArPSAkaSAqIDYwOwoJfQoJCgkkaG91cnMgPSBmbG9vciggJHNlY29uZHMgLyAzNjAwICk7Cgkkc2Vjb25kcyAtPSAkaG91cnMgKiAzNjAwOwoJJG1pbnV0ZXMgPSBmbG9vciggJHNlY29uZHMgLyA2MCApOwoJCgllY2hvICJ7JGhvdXJzfTp7JG1pbnV0ZXN9Ijs=