top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How many types of Array are there in PHP?

0 votes
667 views
How many types of Array are there in PHP?
posted Aug 6, 2018 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
(2/5):, 2 ki power 5 ka man kya hoga

1 Answer

0 votes

There are three types of arrays that you can create. These are:

Indexed array — An array with a numeric key.
Associative array — An array where each key has its own specific value.
Multidimensional array — An array containing one or more arrays within itself.

An indexed or numeric array stores each array element with a numeric index.
In an associative array, the keys assigned to values can be arbitrary and user defined strings.
The multidimensional array is an array in which each element can also be an array and each element in the sub-array can be an array or further contain array within itself and so on.

answer Jun 14, 2019 by Siddhi Patel
Similar Questions
0 votes

Given an array on 'N' names (Strings) , find how many distinct name are there in total?
1. Code should have minimum time complexity.
2. Share the C code?

...