Re: Re[2]: [PHP] Control Structure problem

2003-09-16 Thread Chris Shiflett
--- Tom Rogers <[EMAIL PROTECTED]> wrote: > This is why you need this construct > > $foo = 0; > switch (true) You must have missed example 1. :-) > which now works as expected Both examples work as expected, of course. Chris = Become a better Web developer with the HTTP Developer's Handbo

Re[2]: [PHP] Control Structure problem

2003-09-16 Thread Tom Rogers
Hi, Wednesday, September 17, 2003, 11:47:45 AM, you wrote: EL> On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote: EL> : EL> : switch ($var) { EL> : case 'TEST-1': case 'TEST-2': case 'TEST-2': EL> : do something EL> : } EL> The switch statement doesn't do an equivalency