3 ms·
Nothing magic here. Be careful with the == comparison operator and its type juggling. If you want to match things precisely, use the === operator. Loose compari
by nerdy 11y ago
Nothing magic here. Be careful with the == comparison operator and its type juggling. If you want to match things precisely, use the === operator. Loose comparisons can have dangerous side-effects!
The MD5 examples are really just cloaked comparisons like this one, later in the list:
var_dump('0010e2' == '1e3');
((10 x 10^2) == (1 * 10^3))
http://php.net/manual/en/language.operators.comparison.php http://php.net/manual/en/language.operators.comparison.php
http://php.net/manual/en/types.comparisons.php http://php.net/manual/en/types.comparisons.php