6 unicity traps that sideline PHP code Sometimes, code is being ignored by PHP : code is painstakingly written but never gets executed. How is that even possible? May be, because it was not so painstakingly coded. And there are no less than 6 unicity traps that sideline PHP code. Indeed, there are some PHP […]
Removing duplicate cases in switch Switch statements in PHP link a situation (the cases) to code to be executed. Duplicate cases in switch statement should be avoided. Just like this : switch ($a) { case ‘a’ : /* code here */ case ‘b’ : /* code here */ default : /* code here */ } Duplicate code in switch statements […]