Hi
One way to achieve the same effect:
fallthru = 0;
switch($whatever){
case "1":
do something1;
$fallthru = 1;
case "2":
if(!$fallthrough){
do something2;
}
case "3"
do something3;
break;
}
Tom
At 05:18 AM 30/06/2002 -0400, 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?
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php