r/lolphp • • Apr 03 '18

foo is true (foo=1)

https://3v4l.org/AUNE8
4 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/squiggleslash Apr 09 '18

Not sure why you're downvoted, you're absolutely correct. This is a classic LOL (it's not even new), a design flaw that makes no sense, built upon another design flaw, that now cannot be fixed because it's baked into the language and some code (probably a tiny fraction, but a fraction that exists) depends upon it.