Select case equivelent

From: Date: Wed, 04 Apr 2001 18:07:09 +0000
Subject: Select case equivelent
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-47108@lists.php.net to get a copy of this message
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? Thanks -Allen umayxa3@donet.com

« previous php.general (#47108) next »