0

If two-dimentional array contains 2indices -row and column then what are the three indices in three-dimentional array in php?

8th Sep 2018, 5:51 AM
Mabruka Mannan
Mabruka Mannan - avatar
2 Antworten
+ 5
Two dimensional arrays don't have rows and columns. That's just a way to demonstrate/visualize how they work. The values of two dimensional arrays are stored in memory the same way as one dimensional arrays or single variables, in consecutive memory addresses. You could visualize a three dimensional array as a cube with the third dimension being the z axis. Everything beyond that (there are arrays with four or more dimensions) is pretty much impossible to visualize.
8th Sep 2018, 7:22 AM
Anna
Anna - avatar
0
thanx for the ans. Anna.
8th Sep 2018, 7:28 AM
Mabruka Mannan
Mabruka Mannan - avatar