array error

hi all,

when i use array like this:
array[1]=223
echo ${array[1]}

result is :
array: 1,2: syntax error

thanx.

---------- Post updated at 09:21 AM ---------- Previous update was at 09:20 AM ----------

sorry, i had written wrongly.

when i use array like this:
array[1,2]=223
echo ${array[1,2]}

shell arrays have one dimension [1], not two [1,2].
You have to create some kind of workaround to be able to use 2-dimensional arrays.
Here is a bash example of creating a pseudo-2-dimensional array.
Arrays

thanx