Hacker News new | ask | show | jobs
by belst 2027 days ago
because (int)'foobar' is 0
1 comments

JavaScript and php have the === which doesn’t try casting types.

Php has good documentation with examples which I appreciate :

https://www.php.net/manual/en/language.operators.comparison....