The process the Switch statement works are it takes a single variable as input and checks it upon all the various cases you set up for that switch statement. Preferably must check that variable one at a time, as it goes through a group of If Statements, the Switch statement only has to check one time. In our example, the single variable will be $date and the cases will be: Mon, Tue, wed, Thu, Fri, Sat and Sun.
Mraj
Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts. If you have any questions let me drop an email with the article name to the following email id: [email protected]