3 ms·
Laravel dev 4+ years... I use switch VERY rarely.. only if I have 4+ different possible outputs from the result of a variable... I also think switch's are kind
by gremlinsinc 9y ago
Laravel dev 4+ years... I use switch VERY rarely.. only if I have 4+ different possible outputs from the result of a variable... I also think switch's are kind of ugly and don't jive w/ my mindset.. I think more in if/then's... if using loops using laravel collections instead.