array forloop syntax question
<p>If I have:</p>

<pre><code>$data = array(
  'id01' =&gt; array(
    'firstName' =&gt; 'Eric',
    'lastName' =&gt; 'Smith',
  ),
  'id02' =&gt; array(
    'firstName' =&gt; 'John',
    'lastName' =&gt; 'Turner',
  ),
);

foreach ( $data as $key){
    print "$key[firstName]&lt;br&gt;";
    echo $key[0];
}
</code></pre>

<p>The $key[0] part is not working...basically i'm trying to output id01, then id02, basically the id part of the array that the forloop is processing...</p>

<p>Any ideas on the correct syntax?</p>
