Hacker News new | ask | show | jobs
by Sanddancer 4641 days ago
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.
1 comments

> a fairly broken situation

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