Aryan PrajapatKnowledge Contributor
In PHP, what are the different types of arrays?
In PHP, what are the different types of arrays?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
In PHP, there are three types of arrays:
Indexed Array – An indexed array is one that has a numeric index. In a linear method, values are stored and accessed.
Associative Array – An associative array is an array with strings as an index. Rather than storing element values in a strict linear index sequence, this saves them in conjunction with key values.
Multidimensional Array – A multidimensional array is an array that contains one or more arrays. Multiple indices are used to access the values.