Re: [PHP] Re: alter switch variable inside case?

2002-09-01 Thread @ Edwin
I'm not sure if you've already tried the idea I posted earlier. Anyway, I tried it myself and it works! (At least with this simple example...) '; switch ($_GET['myvar']){ case 1: $_GET['myvar'] = 2; case 2: echo "Hello!"; break; case 3: $_GET['myvar'] = 4; case 4: e

Re: [PHP] Re: alter switch variable inside case?

2002-08-31 Thread Joe Janitor
Could you elaborate? In the example I posted, setting foo=step1 in the first case segment does NOT cause execution of the second case segment, as would be the case if it was actually re-evaluating the match upon subsequent case statements. --- CHAILLAN Nicolas <[EMAIL PROTECTED]> wrote: > Yes

[PHP] Re: alter switch variable inside case?

2002-08-31 Thread CHAILLAN Nicolas
Yes you can. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "Joe Janitor" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL P