Home > DeveloperSection > Interviews > How many types of array are there in PHP?

Posted on    September-26-2016 1:20 AM

 1 Answer(s)
  43  View(s)
Rate this:

Barbara Jones

Total Post:17

Posted on    September-26-2016 1:20 AM

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.

Modified On Sep-26-2016 01:50:34 AM

Don't want to miss updates? Please click the below button!

Follow MindStick