Posted By

larzw on 05/13/11


Tagged


Versions (?)

Switch Case


 / Published in: PHP
 

  1. switch ($i) {
  2. case 0:
  3. echo "i equals 0";
  4. break;
  5. case 1:
  6. echo "i equals 1";
  7. break;
  8. case 2:
  9. echo "i equals 2";
  10. break;
  11. }

Report this snippet  

You need to login to post a comment.