note 26135 added to language.operators.assignment
| From: | johnNOSPAM at doe dot NO_SPAM dot com | Date: | Sat, 19 Oct 2002 06:12:38 +0000 |
| Subject: | note 26135 added to language.operators.assignment | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38285@lists.php.net to get a copy of this message | ||
NOTE: "The value of an assignment expression is the value assigned."
In other words:
if ($foo = false) {
echo 'bar';
}
'bar' will never be printed, even though the assignment was successful, because the
expression returned false.
--
http://www.php.net/manual/en/language.operators.assignment.php
http://master.php.net/manage/user-notes.php?action=edit+26135
http://master.php.net/manage/user-notes.php?action=delete+26135
http://master.php.net/manage/user-notes.php?action=reject+26135