how can i search value in Array?
<p>I have an array like this and i m trying to search a value 
using this array:</p>

<pre><code>$arr = Array('Slovenly Mexico','Slovenly Europe','Greece');
</code></pre>

<p>I am using such kind of condition. please help</p>

<pre><code>if($a[storename] == $arr[$i]){
                //some code

          }
</code></pre>

<p>but it is not working because it searches as index value so it gives an error.</p>

<pre><code>Array
(
    [0] =&gt; Array
        (                    
            [storename] =&gt; Greece
        )

    [1] =&gt; Array
        (         
            [storename] =&gt; Slovenly Europe
        )


    [3] =&gt; Array
        (           
            [storename] =&gt; Slovenly Europe
        )

    [4] =&gt; Array
        (       
           [storename] =&gt; Greece
        )

    [5] =&gt; Array
        (
        [storename] =&gt; Slovenly Mexico

        )

    [6] =&gt; Array
        (
            [storename] =&gt; Slovenly Europe
        )

    [7] =&gt; Array
        (
         [storename] =&gt; Slovenly Mexico

        )
 } 
</code></pre>
