title: Get the name of an index in an array
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1028668/get-first-key-in-a-possibly-associative-array">Get first key in a [possibly] associative array?</a>  </p>
  </blockquote>
  
  
  
  <p>I have this array:</p>
  
  <pre><code>Array
  (
      ['foobar'] =&gt; Array
          (
              [key1] =&gt; value1
              [key2] =&gt; value2
          )
  
  )
  </code></pre>
  
  <p>I want to get to name of the first index (foobar). How can I do it?</p>