Re: Another problem with conditional statements

From: Date: Fri, 20 Dec 2002 07:59:46 +0000
Subject: Re: Another problem with conditional statements
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128959@lists.php.net to get a copy of this message
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 */

« previous php.general (#128959) next »