Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
An array is a variable that can be used to store a set of values. Usually the values are related in some way. Individual elements are accessed by their index in the array. Each index is enclosed in square brackets. The following statement assigns a value to an element of an array:
array[subscript] = value