php - strict comparison fails laravel blade, Some silly mistake by me
Solution:
don't worry this is very easy, you can do it with ignoring else case by use
{{isset($a['gender']) && $a['gender'] !="male"?:"checked" }}
to checked if current gender is Male
{{isset($a['gender']) && $a['gender'] !="female"?:"checked"}}
to checked if current gender is Female
Answer
Solution:
This should give you a strict comparison
$a["gender"] = "female"; //assuming that was the array value
echo ($a['gender'] === "female")? "true" : "false"; //this returns true
echo ($a['gender']=== "male")? "true" : "false"; //this returns false
Source