KiXtart arrays work pretty much the same as in any language.
Here is a couple of tips.
If you are going to need to change the size of the array, make the variable dimension the last one - you can only resize the right-hand most dimension.
If you are going to want to use the array like a mini-database (aka a "hash" or "associative" array), then it may be better to have an array-of-arrays. This allows you to use "Ascan" to search the "key" part of the array.
Here is an example, which uses the key "apple" to look up it's colour.
Code:
Dim $haFruitColours[1] ; Create primary array
; Create fruit name (key) array
$haFruitColours[0]="lemon","apple","grape"
; Create colour (data) array
$haFruitColours[1]="yellow","green or red","green or black"
"The colour of an apple is " $haFruitColours[1][Ascan($haFruitColours[0],"apple")] ?
The other advantage of using the array-of-arrays technique is that you may resize any of the elements.
Note the difference in addresses. A mutli-dimensional array is referenced as ARRAY[X,Y], wheras an array of arrays is referenced as ARRAY[X][Y].