PHP Switch Statement
March 12th, 2007
No comments
switch/case is very similar or an alternative to the if/elseif/else commands. The switch command will test a condition. The outcome of that test will decide which case to execute. Switch is normally used when you are finding an exact (equal) result instead of a greater or less than result.
switch (condition) {case “value1” :
block of [...]
Categories: PHP Functions, PHP Switch, Shafiq Ahmed