Getting an array element
<p>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</p>

<pre><code>$a=array(
'a'=&gt;array
    (
      'x'=&gt;'something',
      'y'=&gt;'somethingelse',
      'z'=&gt;'another thing'
    );
);
</code></pre>

<p>I would like to get the value of 'y' key.</p>

<p>I try this</p>

<pre><code>foreach($a as $k=&gt;$v)
{
  foreach($v as $vv)
  {
    return $v['y']
  }
}
</code></pre>

<p><strong>UPDATE</strong><br>
Thanks for your posts. How stupid I am :shy:</p>
