Categories
PHP

PHP switch

switch on php.net An interesting alternative to if/elseif/else in php I came upon. Why use it? After reading around for a bit it would appear its just more human readable. Some say it may be faster in some scenarios, it may be less code, use it if you have more than 3 conditions said another. […]