Hacker News new | ask | show | jobs
by fsniper 4641 days ago
It's PHP concatenation operator is ".".

  print $productid . 4;
1 comments

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.