note 92028 deleted from control-structures.switch by thiago
| From: | thiago@php.net | Date: | Mon, 06 Jul 2009 12:06:21 +0000 |
| Subject: | note 92028 deleted from control-structures.switch by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-157958@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
<?php
switch($beer)
{
case 'tuborg';
case 'carlsberg';
case 'heineken';
echo 'Good choice';
break;
default;
echo 'Please make a new selection...';
break;
}
?>
There is an error here. It must be replace by:
<?php
switch($beer)
{
case 'Leffe';
case 'Killian';
case 'Guiness';
echo 'Good choice';
break;
default;
echo 'Please make a new selection...';
break;
}
?>