Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

swich in php

switch (n) {
  case label1:
    executed if n=label1;
    break; # jump out of the switch 
  case label2:
    executed if n=label2;
    break;# jump out of the switch 
  case label3:
   executed if n=label3;
    break;# jump out of the switch 
    ...
  default:
     executed if n is not equal to any of the lables;
}
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #swich #php
ADD COMMENT
Topic
Name
9+3 =