Hacker News new | past | comments | ask | show | jobs | submit login

"a string is not a number"

Well then use ===, but when a string contains numbers then php will do the type conversion for you. It's a convenience.

It may not work correctly by your definition but it's pretty intuitive and useful the way it is.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: