note 60797 added to control-structures.switch
| From: | CW at osu1 dot php dot net | Date: | Tue, 17 Jan 2006 00:18:06 +0000 |
| Subject: | note 60797 added to control-structures.switch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-101945@lists.php.net to get a copy of this message | ||
Can you have mulitple values inside a case eg
i have a list of values to check around 30, say 17 of the values result in the same code being run
can i put them in one case statement
switch myValues
case 1
----
Server IP: 216.235.15.211Probable Submitter: 156.34.215.107
----
Manual Page -- http://www.php.net/manual/en/control-structures.switch.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60797
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60797&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60797&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60797&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60797&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60797&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60797&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60797&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60797&report=yes
Search -- http://master.php.net/manage/user-notes.php