Re:PHP 8: Before and After
by erik_seaberg on Friday October 23, 2020 @03:54PM
(#24873256)
You have to test the simplest expressions because you can't trust the language to do what you wrote.
[ Parent
| on HN ]
Re:PHP 8: Before and After
by francislavoie on Friday October 23, 2020 @08:53PM
(#24875979)
That's why `===` is a thing. But FYI, "foo" == 0 is no longer true in PHP 8: https://3v4l.org/fQLXX RFC is here: https://wiki.php.net/rfc/string_to_number_comparison