4 ms·
> This is well-known PHP-trick. Use === to right result. Everybody knows PHP is a trickly-typed language. Read the docs people or PHP will take advantage of y
by steego 11y ago
> This is well-known PHP-trick. Use === to right result.
Everybody knows PHP is a trickly-typed language. Read the docs people or PHP will take advantage of your gullible ass.
- tellor 11y agoperhaps ==== operator must reserved
- josteink 11y agophp_real_equivalence_4()
- tellor 11y agoExactly! But it must invoke with additional NULL-parameter to achieve real effect and analyse return value for TRUE, FALSE, NULL: php_real_equivalence_4($x, $y, null);
- DonHopkins 11y agoExcept they had to call it php_real_equivalnce_4() because php_real_equivalence_4() was taken.
- steego 11y agoAbsolutely! However, we must be careful not to define it in a too predictable way lest we violate the Principle of Most Surprise.