switch statemnts.
| From: | Greg Linnell | Date: | Wed, 12 Jul 2000 16:50:18 +0000 |
| Subject: | switch statemnts. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-6185@lists.php.net to get a copy of this message | ||
Can I do someting like this?
switch($v){
case <=0:
stuff;
case 0:
stuff;
case >=0:
stuff
default;
}
and this
switch($v){
case 1 or 2 or 3 or 4:
stuff;
case 5,6,7,8:
stuff;
default;
}
Cheers for any help and tips
Greg.