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") {

Another way to do it is by using in_array(), like so:

if (!in_array($idx,array("1","4","9"))) {
  echo "$results";

I don't know if that is more or less efficient to the parser, but it
looks cleaner IMHO...

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to