Reference element in multidimensional Arrays
<?php
$emp_det = array (array (Name=>"a", Code=> "8", Hobby=> "A"),
array (Name=>"b", Code=> "8", Hobby=> "B"),
array (Name=>"c", Code=> "1", Hobby=> "C"),
array (Name=>"d", Code=> "3", Hobby=> "D"),
);
echo $emp_det [0] [Hobby];
?>
Related examples in the same category