Advertisement
youssef17

PHP 5 switch Statement

Aug 22nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. PHP 5 switch Statement
  2. The PHP switch Statement
  3. Use the switch statement to select one of many blocks of code to be executed.
  4. Syntax
  5. This is how it works: First we have a single expression n (most often a variable), that is evaluated once. The value of the expression is then compared with the values for each case in the structure. If there is a match, the block of code associated with that case is executed. Use break to prevent the code from running into the next case automatically. The default statement is used if no match is found.
  6.  
  7. for download this code from here ::::
  8.  
  9. http://ww.w.quelldateien.de/download/o5_2m
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement