Re: IF command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



if (!in_array($component_reference, array(5,17)))
// ...

More compact.


On Oct 18, 2007, at 5:49 PM, "ron.php" <ron.php@xxxxxxxxxxxxxxxxxx> wrote:

When $component_reference is 5 or 19 I don't want the echo statement to output to the screen. What is the correct syntax? What I have below isn't
working.  Thanks for your help.  Ron

if ( ($component_reference != "5") OR ($component_reference != "19") ) {
echo "<li><a href=\"index.php?request=" . $request . "\">" .
$component_name . "</a>";
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux