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

You missed the point, and the problem. PHP tries way too hard to try to mangle input to kinda sorta work with the operators at hand. Were it a reasonable language, it would throw out a warning, or better yet, an error, to handle a fairly broken situation like this, rather than try to pick and choose the parts of the string it thinks is appropriate.



> a fairly broken situation

You missed the problem as well. Don't ask for trouble by creating broken situations.




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

Search: