1 2 3 4 5 6 7 | $a = 'white' switch ($a) { 'red' {"The colour is red"} 'white' {"The colour is white"} default{"Another colour"} } |
1 2 3 4 5 6 7 | $a = 'white' switch ($a) { 'red' {"The colour is red"} 'white' {"The colour is white"} default{"Another colour"} } |