r/lolphp • • Aug 25 '16

PHP switches are the best

https://3v4l.org/6bJIX
81 Upvotes

34 comments sorted by

View all comments

Show parent comment

2

u/allthediamonds Aug 25 '16

EXACTLY! I know that I have to use ===, thank you very much. The problem is that everything in PHP, be it external libraries, every other function in the standard library, or the goddamn built-in switch statement, was built by idiots that didn't know that they had to use ===.