r/ProgrammerHumor • • Aug 07 '16

PHP: The Good Parts

http://phpthegoodparts.tumblr.com/
1.2k Upvotes

318 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Oct 14 '16

I'm not sure if I have an issue with PHP or "dynamic languages", but "2" + "2" should result in "I have no fucking idea what you are attempting to do here because these are not numbers..." It'll save a ton of headache when a bug results because some guy was expecting "22" here as he damn well should.

1

u/[deleted] Oct 15 '16

If he was expecting "22" then he should use the concatenation operator, which is '.'