This problem is old and basic but I can't figure out a better way to get it right without looping through the whole array
$a=array(
'a'=>array
(
'x'=>'something',
'y'=>'somethingelse',
'z'=>'another thing'
);
);
I would like to get the value of 'y' key.
I try this
foreach($a as $k=>$v)
{
foreach($v as $vv)
{
return $v['y']
}
}
UPDATE
Thanks for your posts. How stupid I am :shy: