4 ms·
"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
by vehemenz 5y ago
"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.