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

PHP: var_export(0 == "hello"); // true

JavaScript: console.log(0 == "hello"); // false




Actually, I was hoping for something more than a single example.

Or, did you mean that PHP and JavaScript were neck-and-neck all the way up to that one example, and ultimately it's the very one that proves PHP's type coercion is worse?


You're in a thread about how PHP's type coercion can easily cause a serious vulnerability. So, the title of this thread is your second example. If you want a third example, find it yourself.


Give me a break. 3 examples isn't enough to answer the question. Your comment history shows you ask questions in lieu of doing your own research. If you don't want to take the time, then move on.




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

Search: