I've read somewhere that === is more secure than == So should I use something like this:
if ($user === "") {
echo "you are not logged in";
}
instead of
if ($user == "") {
echo "you are not logged in";
}
? The question is probably stupid, but I never really used === so I don't know much about it from security standpoint.
I am strictly interested in why === is more secure than == The duplicate doesn't address that.