while (list ($key, $val) = each ($valArray))
Habe heute wieder einen alten Src gefunden …
Und … also der geht schon und tut was er soll …
Nur was tut er? … Hat etwas gedauert bis ich´s raus hatte …
-
<?php
-
//nichts hier drin
-
}
-
// save one Row $val2 in File
-
// …..
-
$j += $i-1;
-
}
-
-
}
-
?>
-> Allein dafür $i und $j zu mischen könnt ich mich schon aufregen …
$i $I $l $L $j $J *GRRRRR*
Hab mir mal die mühe gemacht den Code auszutauschen…
der Block war halt genau so 4 mal verbaut… muss ja nicht sein
-
<?php
-
foreach (str_split($row, 51) as $rowPart) {
-
// save one Row $rowPart in File
-
// …..
-
}
-
}
-
?>
-> die str_split () und foreach () Funktion gab es wohl noch nicht als dass gebaut wurde war wohl PHP 3.X … dass da noch kein Staub drauf war!
Habe nebenbei noch was lustiges herausgefunden… ich bin NIE auf die Idee gekommen sowas zu versuchen oder so… warum auch…
"Also note that foreach operates on a copy of the specified array, not the array itself, therefore the array pointer is not modified as with the each() construct and changes to the array element returned are not reflected in the original array." In other words, this will work (not too expected):
-
<?php
-
foreach ($array as $array) {
-
// …
-
}
-
?>
