How to compare an array variable and Normal variable using if condition in PHP
<p>I want to compare an array variable and Normal variable using if condition in PHP..
I have an Array VAriable as .$AllowedEnquiryType[$i] and a variabe as $TIntType how to check these to are equal.</p>

<p>My coding is</p>

<pre><code>for($i=1;$i&lt;=$length;$i++)
    {
        if($AllowedEnquiryType[$i]==$TIntType) 
        {   
             return true;
        }
        else
        {

            return false;
        }
}
</code></pre>
