note 49966 deleted from language.operators.arithmetic by hholzgra

From: Date: Thu, 02 Aug 2012 15:03:53 +0000
Subject: note 49966 deleted from language.operators.arithmetic by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189799@lists.php.net to get a copy of this message
Note Submitter: sputnik13 at gmail dot com ---- I just had to make a comment about gilthans' use of the bitwise xor operator (^)... I'm guessing from the line if(($x < 0 ^ $y < 0) && $x != 0) that he wants to verify that only x or only y is less than 0 AND x != 0... Bitwise operators should not be used for truth values like this, that's what xor is for.

« previous php.notes (#189799) next »