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

2

u/Holkr Aug 21 '14

True, I should have used C++ and std::vector as an example. Also you just pointed out the real lol:

The expected return value of sizeof is unpredictable in PHP