note 116102 added to language.operators.logical

From: Date: Mon, 10 Nov 2014 03:13:07 +0000
Subject: note 116102 added to language.operators.logical
Groups: php.notes 
Request: Send a blank email to php-notes+get-200860@lists.php.net to get a copy of this message
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.) ---- Server IP: 72.52.91.14 Probable Submitter: 86.149.143.244 ---- Manual Page -- http://php.net/manual/en/language.operators.logical.php Edit -- https://master.php.net/note/edit/116102 Del: integrated -- https://master.php.net/note/delete/116102/integrated Del: useless -- https://master.php.net/note/delete/116102/useless Del: bad code -- https://master.php.net/note/delete/116102/bad+code Del: spam -- https://master.php.net/note/delete/116102/spam Del: non-english -- https://master.php.net/note/delete/116102/non-english Del: in docs -- https://master.php.net/note/delete/116102/in+docs Del: other reasons-- https://master.php.net/note/delete/116102 Reject -- https://master.php.net/note/reject/116102 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200860) next »