InterviewSolution
Saved Bookmarks
| 1. |
What are the different types of Array in PHP? |
|
Answer» There are 3 main types of arrays that are used in PHP: Types of Arrays in PHPINDEXED Array An array with a numeric key is KNOWN as the indexed array. Values are STORED and accessed in linear order. Indexed ArrayAssociative 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. Associative ArrayMultidimensional Array An array containing one or more arrays within itself is known as a multidimensional array. The values are accessed using multiple indices. Multidimensional Array |
|