How to grab the key from an array when a value matches another value from a string or another array using PHP?
<p>How can I grab a key from an array where a value equals another value for example lets say I have an array and I want to return the key for a value when a match for the value grEen is made. How would I be able to do this using PHP?</p>

<pre><code>Array
(
    [147] =&gt; ad
    [148] =&gt; grEen
    [149] =&gt; TRUE
)
</code></pre>
