title: php search array key and get value
body: <p>I was wondering what is the best way to search keys in an array and return it's  value. Something like array_search but for keys. Would a loop be the best way?</p>
  
  <p>Array: </p>
  
  <pre><code>Array([20120425] =&gt; 409 [20120426] =&gt; 610 [20120427] =&gt; 277
        [20120428] =&gt; 114 [20120429] =&gt; 32 [20120430] =&gt; 304
        [20120501] =&gt; 828 [20120502] =&gt; 803 [20120503] =&gt; 276 [20120504] =&gt; 162)
  </code></pre>
  
  <p>Value I am searching for : 20120504</p>