$arrMenuStruct[4][2][3]['MenuName'];
this is a 4-dim array!
don't mix up (a) associative and enumerative arrays and (b) the level order:
$arr = array('bla', 'bli', 'blo');
would be the same as
$arr = array(0 => 'bla', 1 => 'bli', 2 => 'blo');
just that with enumerative arrays you don't write down the keys.
now add a dimension:
$arr = array(array(1,2,3), array(7,8,9));
so that (note the dimenstion notation order):
$arr[1][2] gives 9. (numbering starts with 0!)
add another dimension:
array(
array(
array(1,2),
array(3,4)
),
array(
array(5,6),
array(7,8)
)
)
and $arr[0][1][0] gives 3.
once you see through this, try turning parts of this array monster into an associative array.
array(
array(
"labels" => array(1,2),
"items" => array(3,4)
),
array(
"labels" => array(5,6),
"items" => array(7,8)
)
)
$arr[1]['items'][0] gives 7.
hope this gets you on track 🙂