Re: stupid question
| From: | Chris Shiflett | Date: | Thu, 15 Aug 2002 03:53:07 +0000 |
| Subject: | Re: stupid question | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112657@lists.php.net to get a copy of this message | ||
There are other ways of doing this, but I think you might be looking for the logical AND operator (&&).
if ($idx != "1" && $idx != "4" && $idx != "9")
Happy hacking.
Chris
Liam MacKenzie wrote:
Ok, I'm having a blonde day... If $idx == 1, 4 or 9 I don't want it to echo $results. I have this, what's the syntax to put multiple values in there? if ($idx != "1") { echo"$results"; }