note 8377 deleted from Control Structures by torben
| From: | torben@php.net | Date: | Fri, 08 Sep 2000 23:04:10 +0000 |
| Subject: | note 8377 deleted from Control Structures by torben | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4575@lists.php.net to get a copy of this message | ||
I have noticed that:
if (($x != 'yes') || ($x != 'yeah'))
{
do some stuff
}
does not work as expected. I had to break them apart into separate if statements.
I realize switch will work for this, but it ends up being much more code than needed.