Re: Select case equivelent
| From: | Geir Eivind Mork | Date: | Thu, 05 Apr 2001 10:03:17 +0000 |
| Subject: | Re: Select case equivelent | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47221@lists.php.net to get a copy of this message | ||
On 05 Apr 2001 11:53:21 +0200, Christian Reiniger wrote:
switch ($foo) {
case "bar1":
$foobar="fooey";
break;
<etc...>
default:
$foobar = "NoBar";
}
> > I have a list of conditions I want to test against.
> > In ASP, I would do:
> > How do I do the equivelent in PHP?
> Try reading the manual.
--
php developer / CoreTrek AS | Old programmers never die, they just hit
Sandnes / Rogaland / Norway | account block limit.
web: http://www.moijk.net/ |