I've got this cycle:
$diffe = $differenz*7;
$diff = 0;
$n = 0;
$an = $anzahl-1;
$z = 0;
$plus = $periode;
$oarray = array();
$sarray = array();
$parray = array();
$h = 0;
while ($n < $ortcount) {
foreach ($ortearray as $o) {
$oarray[] = $o;
}
$sarray[] = get_start_dates($star, $diff, $wochearray);
$diff += $diffe;
while ($h < $ortcount) {
$helpingstring= join(";",$sarray[$h]);
echo $h;
$sarrayhelp = explode(";", $helpingstring);
while ($z < $an) {
foreach ($sarrayhelp as $s) {
$parray[] = plustime($s, $plus);
}
$plus = $plus+$periode;
$z++;
}
$h++;
}
$n++;
}
and need the following:
every "subarray" of the multidimensional array "$sarray[]" should be progressively processed by the plustime() function and results should be saved to "$parray[]".
At this time, only the first subarray of "$sarray[]" is being processed.
Any help would be greately appreciated. Please help!