1switch/case/default
2-----
3<?php
4
5switch ($expr) {
6    case 0:
7        echo 'First case, with a break';
8        break;
9    case 1:
10        echo 'Second case, which falls through';
11    case 2:
12    case 3:
13    case 4:
14        echo 'Third case, return instead of break';
15        return;
16    // Comment
17    default:
18        echo 'Default case';
19        break;
20}
21-----
22switch ($expr) {
23    case 0:
24        echo 'First case, with a break';
25        break;
26    case 1:
27        echo 'Second case, which falls through';
28    case 2:
29    case 3:
30    case 4:
31        echo 'Third case, return instead of break';
32        return;
33    // Comment
34    default:
35        echo 'Default case';
36        break;
37}