This tutorial explains how to use switch statements to test multiple conditions with a variable. Sample code: http://codemahal.com/video/switch-statements-in-php/
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.