note 16401 added to language.operators.assignment
| From: | germain at ebooksfrance dot com | Date: | Sun, 28 Oct 2001 17:24:33 +0000 |
| Subject: | note 16401 added to language.operators.assignment | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19529@lists.php.net to get a copy of this message | ||
note that there are no combined (logical + assignement) operators :
$a &&=1;
$b ||=0;
WON'T WORK.
Instead, try:
$a && $a=1;
$b || $b=0;
--
http://www.php.net/manual/en/language.operators.assignment.php
http://master.php.net/manage/user-notes.php?action=edit+16401
http://master.php.net/manage/user-notes.php?action=delete+16401
http://master.php.net/manage/user-notes.php?action=reject+16401