Added Multidimensional Array (#32986)
Added Multidimensional Array as part of arrays
This commit is contained in:
committed by
Paul Happ
parent
a08f252c71
commit
d13b8bf6a0
@ -76,6 +76,15 @@ Would produce the following output:
|
|||||||
I like BWM
|
I like BWM
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Multidimensional Array
|
||||||
|
|
||||||
|
As we mentioned earlier arrays are collection of items, often times these items may be arrays of themselves.
|
||||||
|

|
||||||
|
|
||||||
|
You will always be able to get the value for the specific key by going down the layers: $arr['layerOne']['two']
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Pitfalls
|
## Pitfalls
|
||||||
|
|
||||||
When working with arrays, there are a few important things to keep in mind:
|
When working with arrays, there are a few important things to keep in mind:
|
||||||
|
Reference in New Issue
Block a user