Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: tolik8 user
Added: Jun 8, 2018 6:44 AM
Views: 16
Tags: no tags
  1. switch ($i) {
  2.     case 0:
  3.         echo "i равно 0";
  4.         break;
  5.     case 1:
  6.         echo "i равно 1";
  7.         break;
  8.     case 2:
  9.         echo "i равно 2";
  10.         break;
  11.     default:
  12.        echo "i не равно 0, 1 или 2";
  13. }