I was looking online for the array tutorial but can't seem to get the concept!? Can someone explain two, three, dimensional arrays for me?
I was looking online for the array tutorial but can't seem to get the concept!? Can someone explain two, three, dimensional arrays for me?
2D means you have an array of arrays, and 3D means you have an array of arrays of arrays.
2D:
3D:PHP Code:$foo = array(
array(1,2,3),
array(4,5,6)
);
PHP Code:$bar = array(
array(
array(1,2),
array(3,4),
),
array(
array(5,6),
array(7,8)
)
);