note 130346 added to language.operators.logical
| From: | Anonymous | Date: | Tue, 03 Jun 2025 11:04:45 +0000 |
| Subject: | note 130346 added to language.operators.logical | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-222198@lists.php.net to get a copy of this message | ||
why is there no xnor?
> if ($a xnor $b)
currently you have to do xor negation, which looks ugly:
> if (!($a xor $b))
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 158.255.89.114)
----
Manual Page -- https://php.net/manual/en/language.operators.logical.php
Edit -- https://main.php.net/note/edit/130346
Del: integrated -- https://main.php.net/note/delete/130346/integrated
Del: useless -- https://main.php.net/note/delete/130346/useless
Del: bad code -- https://main.php.net/note/delete/130346/bad+code
Del: spam -- https://main.php.net/note/delete/130346/spam
Del: non-english -- https://main.php.net/note/delete/130346/non-english
Del: in docs -- https://main.php.net/note/delete/130346/in+docs
Del: other reasons-- https://main.php.net/note/delete/130346
Reject -- https://main.php.net/note/reject/130346
Search -- https://main.php.net/manage/user-notes.php