User Guide

About Arrays 117
ColdFusion dynamic 2D array
A ColdFusion 2D array is actually a one-dimensional array that contains a series of
additional 1D arrays. Each of the arrays that make up a row can expand and contract
independently of any other column.
The following terms will help you understand subsequent discussions of ColdFusion
arrays:
Array dimension The relative complexity of the array structure.
Index The position of an element in a dimension, ordinarily surrounded by
square brackets: my1Darray[1], my2Darray[1][1], my3Darray[1][1][1].
Array element Data stored in an array index.
The syntax
my2darray[1][3]="Paul" is the same as saying My2dArray is a
two-dimensional array and the value of the array element index [1][3] is "Paul".
Dynamic arrays expand to accept data you add to them and contract as you remove
data from them.