I'm learning validation stuff, and I just can't understand this:
if (strpos($value, "@") === false) { echo "Validation failed." }
What's the difference between ===
and ==
? and why can't we use ==
instead and also why is it === false
? does false means that @
is not in the $value
or it means 0
?