PHP Switch Statement

The Switch Statement

The switch statement is simplified form of the nested if … else if statement , it avoids long blocks of if..elseif..else code.