note 28746 added to language.operators

From: Date: Wed, 22 Jan 2003 20:33:04 +0000
Subject: note 28746 added to language.operators
Groups: php.notes 
Request: Send a blank email to php-notes+get-42611@lists.php.net to get a copy of this message
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; -- http://www.php.net/manual/en/language.operators.php http://master.php.net/manage/user-notes.php?action=edit+28746 http://master.php.net/manage/user-notes.php?action=delete+28746 http://master.php.net/manage/user-notes.php?action=reject+28746

« previous php.notes (#42611) next »