Re: Two cases going to same case?
| From: | Chris Shiflett | Date: | Sun, 30 Jun 2002 15:08:40 +0000 |
| Subject: | Re: Two cases going to same case? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104575@lists.php.net to get a copy of this message | ||
Leif K-Brooks wrote:
I have a switch in a script I'm working on. I need to have case 1 and 2 both to to case 3, but without case 1 going through case 2. Is this possible?Does "case 3" have to be in the switch? If not, just leave it to execute just after the end of the switch. Otherwise, consider making your program modular. For case 3, include a file that has the code you're wanting to execute. Then all you have to do is include the same file at the bottom of both cases 1 and 2. Chris