title: Reverse of array_search() that looks for the key instead of the value
body: <p>PHP's <code>array_search()</code> does this:</p>
  
  <blockquote>
    <p>Searches the array for a given <strong>value</strong> and returns the corresponding <strong>key</strong> if successful</p>
  </blockquote>
  
  <p>I would like a function that does the exact opposite, that is, searches the array for a given <strong>key</strong> and returns the corresponding <strong>value</strong> if successful.</p>
  
  <p>Is this available at all in PHP 5? If not, what solution would you suggest?</p>