On Friday 20 December 2002 08:28, Sean Malloy wrote:
> Its all wrong. You shouldn't be using a switch statement anyway. A switch
> is for evaluating a single variable.

You can use the switch construct in the context that the OP was using it. In 
fact I prefer use that instead of a whole bunch of if-then-else statements. 
For one thing it looks (IMO) a lot neater.

Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

Beware of bugs in the above code; I have only proved it correct, not tried it.
                -- Donald Knuth

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to