Also die Minuten aus den verschiedenen Zeilen der vorgegebenen Spalte bekomme ich ja wie folgt:
Code:
<?php print_r($tt[10]); ?>
<?php print_r($tt[30]); ?>
<?php print_r($tt[52]); ?>
<?php print_r($tt[72]); ?>
<?php print_r($tt[94]); ?>
<?php print_r($tt[110]); ?>
<?php print_r($tt[131]); ?>
<?php print_r($tt[151]); ?>
Für die Sekunden habe ich nun folgendes "gebastelt" und in den vorhandenen Code eingebaut:
Code:
$time01=explode(':', $tt[10]);
$sec01 =$time01[0]*60;
$sec01+=$time01[1];
$sec01 = round($sec01,0);
$time02=explode(':', $tt[30]);
$sec02 =$time02[0]*60;
$sec02+=$time02[1];
$sec02 = round($sec02,0);
$time03=explode(':', $tt[52]);
$sec03 =$time03[0]*60;
$sec03+=$time03[1];
$sec03 = round($sec03,0);
$time04=explode(':', $tt[72]);
$sec04 =$time04[0]*60;
$sec04+=$time04[1];
$sec04 = round($sec04,0);
$time05=explode(':', $tt[94]);
$sec05 =$time05[0]*60;
$sec05+=$time05[1];
$sec05 = round($sec05,0);
$time06=explode(':', $tt[110]);
$sec06 =$time06[0]*60;
$sec06+=$time06[1];
$sec06 = round($sec06,0);
$time07=explode(':', $tt[131]);
$sec07 =$time07[0]*60;
$sec07+=$time07[1];
$sec07 = round($sec07,0);
$time08=explode(':', $tt[151]);
$sec08 =$time08[0]*60;
$sec08+=$time08[1];
$sec08 = round($sec08,0);
Da wird also die fertige Zeit in Minuten genommen, zerteilt und in Sekunden umgerechnet. Leider eben für jeden der 8 Zeitangaben einzeln.
Angezeigt wird das dann so:
Code:
<?php print_r($sec01); ?>
<?php print_r($sec02); ?>
<?php print_r($sec03); ?>
<?php print_r($sec04); ?>
<?php print_r($sec05); ?>
<?php print_r($sec06); ?>
<?php print_r($sec07); ?>
<?php print_r($sec08); ?>
Ich vermute mal das es auch einfacher geht......nur wie ??