×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Fabian Constien
Added: Nov 2, 2017 6:05 PM
Modified: Nov 5, 2017 9:56 PM
Views: 9
Tags: no tags
  1. switch ($case) {
  2.     case 'case1':
  3.         $var1 = 'var1';
  4.         break;
  5.     case 'case2':
  6.         $var2 = 'var2';
  7.         break;
  8.     default:
  9.         $var3 = 'var3';
  10. }