title: Selecting array key in PHP
body: <p>I've searched Google and the PHP docs but have yet to find a solution for this.  E.g. supposing I want to perform a strstr() on all the keys of an array to determine for which keys are closest to what I'm searching for, such that:</p>
  
  <pre><code>for($i=0;$i&lt;count($array);$i++) {
     if(@strstr(key($array[$i]), "$search")) {
       print "Found: ". key($array[$i]). "&lt;br&gt;";
     }
   }
  </code></pre>
  
  <p>"key($array[$i])" is a placeholder for whatever function or means required for selecting array keys as elements to perform a strstr() upon.</p>
  
  <p>Any help is appreciated sincerely.</p>