if condition evaluation in php
$karthik=$_POST['myarray1'];

if($karthik=="karthik"){
echo "correct";
}
else{
echo "incorrect";
}
Here myarray1 is a array variable has got value "karthik" it is showing result as incorrect
if condition evaluation in php
===

$karthik=$_POST['myarray1'];

if($karthik=="karthik"){
echo "correct";
}
else{
echo "incorrect";
}
Here myarray1 is a array variable has got value "karthik" it is showing result as incorrect