Posts: 39
Location: Aachen, Germany
|
Yes it is. It's fairly simple and will result into a three dimensional array, though not all of the elements will be asigned. The first explode will build the entries on the x-axis. The second explode will create entires on the y-axis at x=1. So far that's nothing special and we'll get a line f(x = 1,y) = x+y. Note that x=0 and x=2 won't have any values, and the explode will only effect the information in x=1 anyway (look at the string parameter).
Okay, fiarly simple. Now let's go into the third dimension by splitting each of the y elements into two values z=0 and z=1. To get all of the y rows splitted we'll just loop trugh them. Now this is where the error occurs.
If you couldn't follow the explanations so far, this visual should clear you up:
0st explode: nothing O_o
1st explode: only x-axis, echoed above as pictrues[i]
a b c
2nd explode: x-axis and y-axis, though only on x=1. Echoed above as pictures[count($pictures) - 2]
0 f 0
0 e 0
a d c
3rd explode: z-axis in x=1 and y=t 0<=t<=2 //that beeing the loop
z=0
0 g 0
0 i 0
a k c
z=1
0 h 0
0 j 0
a l c
so we go from (x,y,z)= (1,0,0) to (1,0,1) to (1,1,0) to (1,1,1) to (1,2,0) to (1,2,1). As mentioned above, the errors is the third dimension and I realy don't know why.
|