Html4newbies
Put your hands into html and php
Home
Privacy
About
Contact

Hosting Links
Hosting
Free Php Snippets
Php Snippets 1
Php Snippets 2
Php Switch Statement


Using Switch Statement
Sometime using the if statement is not the way to go, or rather the easier way to go
Switch Statement

Result:
Traveling to Vegas
Win lots of cash

Another example which will use default:
Switch Statement

Result:
Traveling to Denver
Stop Dreamin!

Copyright © 2002-2017 Html4newbies - Html4newbies.com NetWork