I am especially interested in testing the return value of preg_match, which can be 1, 0, or false.
$val === false;
Example:
0 === false; // returns false
false === false; // returns true
Use triple equals operator/strict comparison
Use ===
type comparison.
Check the manual: http://www.php.net/manual/en/language.operators.comparison.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With