Arrays
Arrays
An array is a collection of data items of the same data type. And it is also known as a subscript variable.
Example:
There are three different kinds of arrays.
1. Numeric Array
These are arrays with a numeric index where values are stored and accessed in a linear fashion.
Example:
2. Associative Array
These are arrays with string as an index where it stores element values associated with key values.
Example:
3. Multidimensional Arrays
A multidimensional Array is an array containing one or more arrays where values are accessed using multiple indices.
Example: