Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

because (int)'foobar' is 0


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....




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: