run this:
function testSwitch($choice);
{
switch ($choice)
{
case 1:
echo 'found 1 ';
break;
case 2:
echo 'found 2 ';
case 3:
echo 'found 3 ';
case 4:
echo 'found 4 ';
case 5:
echo 'found 5 ';
case 6:
echo 'found 6 ';
break;
case 7:
echo 'found 7 ';
case 8:
echo 'found 8 ';
case 9:
echo 'found 9 ';
case 10:
echo 'found 10 ';
}
echo '<br>';
}//testSwitch()
testSwitch(1);
testSwitch(3);
testSwitch(7);
testSwitch(10);
It should give you a feel for the use of "break" and how the switch works.