Find Value in Array
<p>The following array is output from my db.</p>

<pre><code>$this-&gt;db-&gt;select('code')-&gt;from('table');
$array = $this-&gt;db-&gt;get()-&gt;result_array();

//Output:
Array ( [0] =&gt; Array ( [code] =&gt; ASDF123 ) [1] =&gt; Array ( [code] =&gt; ASDF124 ) )
</code></pre>

<p>How can I find if a variable is contained in this array?</p>

<p>ie. </p>

<pre><code>if(this_is_in_array($value, $array) == TRUE)...
</code></pre>

<p>What's the simplest way to to that with PHP?</p>

<p><strong>I sincerely apologize for not wording this correctly the first time.</strong></p>
