Types of Array in PHP

We have three types of array :

Indexed Array

An array with a numeric key is known as the indexed array. Values are stored and accessed in linear order.

Associative Array

An array with strings for indexing elements is known as the associative array. Element values are stored in association with key values rather than in strict linear index order.

Multidimensional Array

An array containing one or more arrays within itself is known as a multidimensional array. The values are accessed using multiple indices.

19