title: Can I have multiple cases that do the same thing?
body: <p>The first one is definitely something that works, but which one below is the efficient way?</p>
  
  <pre><code>switch($type) {
      case 1:
          print 'success';
      break;
  
      case 2:
          print 'success';
      break;
  
      case 3:
          print 'success';
      break;
  
      case 4:
          print 'success for type 4';
      break;
  }
  </code></pre>
  
  <p>Since 1, 2 and 3 print do the same, can I do this?</p>
  
  <pre><code>switch($type) {
      case 1, 2, 3:
          print 'success';
      break;
  
      case 4:
          print 'success for type 4';
      break;
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>switch($type) {
      case 1:
      case 2:
      case 3:
          print 'success';
      break;
  
      case 4:
          print 'success for type 4';
      break;
  }
  </code></pre>