PHP Multidimensional Array

An array of arrays is called multidimensional array. It is used to store the data in a tabular form. It is represented in the form of matrix (row*column).

Example:

We can store the data in the form of two dimensional arrays.

Emp-id Name Salary
John 20 30000
Helena 30 60000
Rasmus 29 40000

 

 Output

1 john 300000
2 Helena 60000
3 Rasmus 40000

Example2

Output

Example 3

Output

Leave a Comment