Simple piece of code, in which we want to store the element of array (which in turn is another array) in another variable:
Global $arr[1][2] = [ [1, 2] ]
Global $sub = $arr[0]
And we get
Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
Global $sub = $arr[0]
Global $sub = ^ ERROR
If we write
Global $arr[1][2] = [ [1, 2] ]
Global $sub[2] = $arr[0]
We get
Missing subscript dimensions in "Dim" statement.:
Global $sub[2] = $arr[0]
Global $sub[2] = ^ ERROR
So simple task, but I didn't find the way how I can do it. Have no idea. Please, help.