Re: Control Structure problem

From: Date: Wed, 17 Sep 2003 00:49:03 +0000
Subject: Re: Control Structure problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162815@lists.php.net to get a copy of this message
* Thus wrote Chris W. Parker (cparker@swatgear.com): > Dan J. Rychlik <mailto:drychlik@tcsconsult.com> > on Tuesday, September 16, 2003 5:12 PM said: > > > Thank you guys. I truly know the level of expertise on this mailing > > list, and I know that it proves invaluable. > > > p.p.s. I totally think that the syntax you presented is logical and > should be available. It makes much more sense to me to do it the way you > did, but alas... Well technically you can do it like: switch ($var) { case 'TEST-1': case 'TEST-2': case 'TEST-2': do something } Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#162815) next »