Example
Close a switch conditional block:
html
<?php
$a = 4;
switch($a):
case 1: echo "One"; break;
case 2:
echo "Two"; break;
case 3: echo "Three"; break;
default: echo "Many";
break;
endswitch;
?>
Definition and Usage
The endswitch keyword is used to mark the end of a switch conditional which was started with the switch(...): syntax.
Related Pages
The switch keyword.