Re: [PHP] reduce the following code "if ($colorVar == 'Black' || $colorVar == 'Red' || $colorVar == 'White' || $colorVar == 'Blue' ){"

2005-03-23 Thread Frank Arensmeier
/frank 2005-03-23 kl. 09.54 skrev Lupita: Hello; Can any one show me a way to reduce the following code? ## if ($colorVar == 'Black' || $colorVar == 'Red' || $colorVar == 'White' || $colorVar == 'Blue' ){ $someVar = "Something"; } ?> #

[PHP] reduce the following code "if ($colorVar == 'Black' || $colorVar == 'Red' || $colorVar == 'White' || $colorVar == 'Blue' ){"

2005-03-23 Thread Lupita
Hello; Can any one show me a way to reduce the following code? ## I was thinking there must be a way to place all the Colors into a $allColorVar and check to see if $colorVar = $allColorVar