Hacker News new | ask | show | jobs
by steego 4060 days 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.

1 comments

perhaps ==== operator must reserved
Absolutely! However, we must be careful not to define it in a too predictable way lest we violate the Principle of Most Surprise.
php_real_equivalence_4()
Exactly!

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);
Except they had to call it php_real_equivalnce_4() because php_real_equivalence_4() was taken.