if condition evaluation in php
<pre><code>$karthik=$_POST['myarray1'];

if($karthik=="karthik"){
echo "correct";
}
else{
echo "incorrect";
}
</code></pre>

<p>Here myarray1 is a array variable has got value "karthik" it is showing result as incorrect</p>
