In that case, this.origins is a multi-dimensional array, sort of like matrices.
Arrays store multiple variables.
PHP Code:
temp.array = {"Hello", "World", "!"};
echo(array[0] SPC array[1] @ array[2]);
The first line defines the array, containing the strings "Hello", "World", and "!".
The second line outputs "Hello World!" on RC. To get a specific variable from an array, you need [#], where the number inside braces ([]) relates to the position in the array starting at the lowest integer 0, so "Hello" is 0, "World" is 1, and "!" is 2.
Now for multi-dimensional arrays.
PHP Code:
temp.array = {{"Hello", "World", "!"}, {"Nice", "day", "we're", "having", "!"}};
echo(array[0][0] SPC array[0][1] @ array[0][1]);
echo(array[1][0] SPC array[1][1] SPC array[1][2] SPC array[1][3] @ array[1][4]);
The first line defines the array, with as the first variable and another array as the second.
The second line outputs "Hello World!" on RC. It gets the first array's variables with array[0][#].
The third line outputs "Nice day we're having!" on RC. It gets the second array's variables with array[1][#].
Also, please stop with all the enters.
For Loops
PHP Code:
for (A; B; C) {
D
}
Use A as a number to do D (or just to do D the amount of times between A with a C increase/decrease and B)
For-Each Loops
PHP Code:
for (A : B) {
C
}
Use A as each of the variables in B (array) in order to do C.
For-each loops are simplified from this.
PHP Code:
for (temp.i=0; temp.i<array.size(); temp.i++) {
temp.v = array[i];
//do things with v
}
Too much explaining...