Arrays:
*
Arrays
An array is a data structure that stores an arbitrary number of values in a single value. An array in PHP is actually an ordered map, where map is a type that associates values to keys.
Parameter | Detail |
—— | —— |
Key | The key is the unique identifier and index of an array. It may be a string or an integer. Therefore, valid keys would be 'foo', '5', 10, 'a2b', ...
Value | For each key there is a corresponding value (null otherwise and a notice is emitted upon access). The value has no restrictions on the input type.