note 28746 deleted from language.operators by sniper
| From: | sniper@php.net | Date: | Mon, 13 Oct 2003 00:05:10 +0000 |
| Subject: | note 28746 deleted from language.operators by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58365@lists.php.net to get a copy of this message | ||
Note Submitter: fatz@fatkids.com
----
One caveat of this precedence is that:
$variable = false or true;
will set $variable to false due to the fact that the or operation is performed after the equals.
For this type of situation you will want to use $variable = (false or true); or $variable = false ||
true;