Posted by Lupita on 03/23/05 20:41
Thank You that did it.
"Lupita" <lupita@lanset.com> wrote in message
news:20050323085439.32609.qmail@lists.php.net...
> Hello;
> Can any one show me a way to reduce the following code?
> ######################################################
> <?php
> if ($colorVar == 'Black' || $colorVar == 'Red' || $colorVar == 'White' ||
> $colorVar == 'Blue' ){
> $someVar = "Something";
> }
> ?>
> ########################################################
> I was thinking there must be a way to place all the Colors into a
> $allColorVar and check to see if $colorVar = $allColorVar?
[Back to original message]
|