Home / DeveloperSection / Interviews / How many types of array are there in PHP?
You haven’t finished your post yet. Are you sure you want to leave and discard your draft?
Can you answer this question?
Barbara Jones
There are 3 types of array :- a) Indexed array:
These array can store numbers, string and objects but their index is represented by numbers. By default value of any index is 0.
b) Multi-dimensional array
A multi-dimensional array consist one or more arrays.
c) Associative arrays:
The associative array are similar to index array in terms of functionality but they are different in terms of key/index.
You have need login or register for voting of answers or question.
Barbara Jones
26-Sep-2016There are 3 types of array :- a) Indexed array:
These array can store numbers, string and objects but their index is represented by numbers. By default value of any index is 0.
b) Multi-dimensional array
A multi-dimensional array consist one or more arrays.
c) Associative arrays:
The associative array are similar to index array in terms of functionality but they are different in terms of key/index.