Code: Select all
$tcmdlf[$nbrcmd + 1] = 999; // to define all (prev) elements as '' (and mark end-of-array)
$debugl = ""; // D E B U G D E B U G D E B U G D E B U G D E B U G
echo "El. 0-4 = $tcmdlf[0] - $tcmdlf[1] - $tcmdlf[2] - $tcmdlf[3] - $tcmdlf[4]"; // D E B U G
$debugl .= "0: " . Implode($tcmdlf) . <crlf>; // D E B U G D E B U G D E B U G D E B U G D E B U G
The output is:
El. 0-4 = ALL CMDS - - - - (Note the "ALL CMDS" as element 0!)
These stmts executed alone show no error:
El. 0-4 = - - - -
so an example script doesn't help!
Later then, in real, elements in $tcmdlf[] will be set to 1 - in an unpredictable sequence! Then other elements sometimes appear to be set to some text, too. Some examples, change for change:
The 1st number is the element number that just has been set.0: ALL CMDS||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||...
15: ALL CMDS|Program Control (P and C)||||||||||||||1||||||||||||||||||||
30: ALL CMDS|Program Control (P and C)||||||||||||||1|||||||||||||||1||||
167: ALL CMDS|Program Control (P and C)||||||||||||||1|||||||||||||||1|||
112: ALL CMDS|Program Control (P and C)||||||||||||||1|||||||||||||||1|||
207: ALL CMDS|Program Control (P and C)||||||||||||||1|||||||||||||||1|||
53: ALL CMDS|Program Control (P and C)||||||||||||||1|||||||||||||||1||||
202: ALL CMDS|Program Control (P and C)||||||||||||||1|||||||||||||||1|||
230: ALL CMDS|Program Control (P and C)||||||||||||||1|||||||||||||||1|||
238: ALL CMDS|Program Control (P and C)||||||||||||||1|||||||||||||||1|||
1: ALL CMDS|1|Var Handling|||||||||||||1|||||||||||||||1|||||||||||||||||
4: ALL CMDS|1|Var Handling||1|||||||||||1|||||||||||||||1||||||||||||||||
10: ALL CMDS|1|Var Handling||1||||||1|||||1|||||||||||||||1||||||||||||||
11: ALL CMDS|1|Var Handling||1||||||1|1||||1|||||||||||||||1|||||||||||||
14: ALL CMDS|1|Var Handling||1||||||1|1|||1|1|||||||||||||||1||||||||||||
21: ALL CMDS|1|Var Handling||1||||||1|1|||1|1||||||1|||||||||1|||||||||||
23: ALL CMDS|1|Var Handling||1||||||1|1|||1|1||||||1||1|||||||1||||||||||
24: ALL CMDS|1|Var Handling||1||||||1|1|||1|1||||||1||1|1||||||1|||||||||
0 = the 1st line is just after element ~250 has been set to "define" the array.
The appearing texts seem to be from another array, containing
ALL CMDS|Program Control (P and C)|Var Handling|...
Seems no good
Can I give more explanations?
Or do other tests?
(Stormy weather is reaching you? I'll have some more time...)