What is Multidimensional array in PHP with Example?

Multidimensional Array is Arrays of Array means one arrays have multiple array. You can define as it have 2Dimensional ([][]), 3Dimensional ([][][]), 4Dimensional ([][][]), and etc.
ex:-

How to work:-
In this array first row or index or key any value necessary but second value not necessary to define. It can be created using nested array.

Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)