News for hackers. Stuff that matters.
Re:A look at modern PHP by msla on Tuesday May 05, 2020 @12:06PM (#23081537)
Here's some interesting facts about PHP I like to know and share. How many of them are now untrue?

"foo" == TRUE, and "foo" == 0, but TRUE != 0

NULL < -1, and NULL == 0

PHP sez:

    Parse error: syntax error, unexpected (T_PAAMAYIM_NEKUDOTAYIM)
Re:A look at modern PHP by shakesbeard on Tuesday May 05, 2020 @12:32PM (#23081830)
You may have missed it, but with PHP 7 the language has even more shifted towards stricter typing paradigms. People use strict comparison, typed properties, typed arguments, etc. Couple that with one of the popular static analysis tools and you'll never see any such errors.
Re:A look at modern PHP by innocenat on Tuesday May 05, 2020 @03:56PM (#23084197)
T_PAAMAYIM_NEKUDOTAYIM was changed to T_DOUBLE_COLON ages ago