RE: [PHP] One variable not equal to 2 values.
| From: | Jay Blanchard | Date: | Thu, 25 Sep 2003 18:58:03 +0000 |
| Subject: | RE: [PHP] One variable not equal to 2 values. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-163968@lists.php.net to get a copy of this message | ||
[snip]
How would I write this statement:
if $thisvar is not equal to this value or that value. { do stuff }
[/snip]
You already wrote it. Now if you want the PHP way RTFM about conditional
statements.
if($thisvar != thisval || $thisvar != thatval){
there be dragons here, because what happens if the first
evaluates true? false?
}