13.02.2016, 12:30
PHP код:
new variable[5];
//now u can put up to 5 integers into the variable
//you always have to start counting at 0, thats very important cause the index of all arrays starts at 0 and not at 1
variable[0] = 1;
variable[1] = 2;
variable[2] = 3;
variable[3] = 4;
variable[4] = 5;
//You can also create multidimensional arrays like that:
new variable[5][5];
// you can now put up to 5 x 5 variables in there (25)
variable[0][0] = 1;
variable[0][1] = 1;
variable[0][2] = 1;
variable[0][3] = 1;
variable[0][4] = 1;
variable[1][0] = 1;
variable[1][1] = 1;
variable[1][2] = 1;
variable[1][3] = 1;
variable[1][4] = 1;
//and so on ....
