This section contains detail about Arrays In PHP.
Arrays In PHP
An array is a data structure that stores multiple value in a single variable. Point to remember here is that PHP's arrays are actually maps (each key is mapped to a value).
You can store multiple values in a single variable and you can access the values by referring to the array name.
There are three types of arrays in PHP :
- Numeric array - An array with a numeric index
- Associative array - An array where each ID key is associated with a value
- Multidimensional array - An array containing one or more arrays
Given below these arrays in detail :
[ 0 ] Comments