note 36694 deleted from control-structures.switch by didou
| From: | didou@php.net | Date: | Sun, 19 Oct 2003 21:01:39 +0000 |
| Subject: | note 36694 deleted from control-structures.switch by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58901@lists.php.net to get a copy of this message | ||
Note Submitter: chris
----
being a newbie i'm not sure if it's obvious, but you can also use any variables in the
case statements such as
switch ($a){
case 1: echo "$a is 1";
case ($b>=10): echo "$b is larger than or equal to 10";
}