note 116102 deleted from language.operators.logical by cmb
| From: | cmb@php.net | Date: | Tue, 16 Oct 2018 18:16:09 +0000 |
| Subject: | note 116102 deleted from language.operators.logical by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-209457@lists.php.net to get a copy of this message | ||
Note Submitter: Jake
----
A gotcha for C/C++ programmers here...
The && and || operators behave as expected. PHP also has a Boolean 'xor' operator
which would fulfill many dreams.
But you may find it not working as expected, as it has *lower* precedence than assignment. (Both
languages ought to have ^^ as Boolean XOR; that's another story.)