Archive

Archive for the ‘PHP Switch’ Category

PHP Switch Statement

March 12th, 2007 Shafiq Ahmed 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 [...]

    Read More...

Welcome to Shafiq.co.in

November 29th, 2006 Shafiq Ahmed No comments

Welcome to Shafiq.co.in

    Read More...