title: Search_array in nested arrays
body: <p>I've got an array with nested arrays, and I was trying to use the *search_array* function to sift through the array and give me back their keys. It hasn't been working. Here's the code:</p>
  
  <pre><code>&lt;?php 
  $array = array(
     'cat1' =&gt; array(1,2,3),
     'cat2' =&gt; array(4,5,6),
     'cat3' =&gt; array(7,8,9),
  );
  
  foreach($array as $cat){
     if(is_array($cat)
        echo array_search(5,$cat); //want it to return 'cat2'
     else
        echo array_search(5,$array);
  }
  </code></pre>
  
  <p>Thanks!</p>