PHP switch

SWITCH statements can be used instead of multiple IF-ELSE statements checking for the same condition.

Click here to read about arrays.