News for hackers. Stuff that matters.
Re:My Opinion on “5” == 5 by vehemenz on Thursday July 29, 2021 @01:20PM (#27998890)
"5" == 5 evaluating to true is only a problem if you don't understand how to do a strict comparison.

It is conventional in PHP and JavaScript to use === unless there is some reason not to.

Re:My Opinion on “5” == 5 by antihero on Thursday July 29, 2021 @01:26PM (#27998930)
I guess one could argue that === should be ==, and the original == shouldn't exist.
Re:My Opinion on “5” == 5 by vehemenz on Thursday July 29, 2021 @01:39PM (#27999127)
Sure. While we're at it, variable assignment should not be "=" in the first place.
Re:My Opinion on “5” == 5 by Etheryte on Thursday July 29, 2021 @02:57PM (#28000034)
The article you're commenting on isn't about Javascript nor PHP though.