Re: Select case equivelent

From: Date: Thu, 05 Apr 2001 09:53:21 +0000
Subject: Re: Select case equivelent
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-47219@lists.php.net to get a copy of this message
On Wednesday 04 April 2001 20:07, you wrote: > I have a list of conditions I want to test against. > In ASP, I would do: > > Select Case foo > case "bar1" > foobar = "fooey" > case "bar2" > foobar = "fooey2" > case "bar3" > foobar = "fooey3" > case else > foobar = "NoBar" > End Select > > How do I do the equivelent in PHP? Try reading the manual. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error - see error 032

« previous php.general (#47219) next »