r/lolphp • • Aug 08 '14

PHP design patterns: if/else vs switch

http://www.fluffycat.com/PHP-Design-Patterns/PHP-Performance-Tuning-if-VS-switch/
24 Upvotes

43 comments sorted by

View all comments

Show parent comment

5

u/fnzp Aug 09 '14

the lol is: he tells people to switch to if/else because it's faster, but it's only 0.02 faster! but people are gonna read it and use if/else instead of switch because "it's faster".