Share this post

Link to post

Share on other sites

SadBunny 129

SadBunny 129

If you would iterate through a 2-dim array, it wouldn't be sure in what order you want to iterate through it. You could simulate it though by making a function for reading a 2-dim array into a 1-dim array (for the lines) with 1-dim arrays (the line's contents per line) stored in it's elements, and iterate through the line arrays, line by line, and call that _ForIn2DArray($2dArray,$functionToCallPerElement) or something.

Roses are FF0000, violets are 0000FF... All my base are belong to you.