Source Code:
(back to article)
<?php $option = 1; switch ($option) { case $option == 1 || $option == 2: echo 'The option is either 1 or 2'; break; }
Result:
Report an issue