note 94627 added to language.operators.assignment
| From: | inca at osu1 dot php dot net | Date: | Sun, 15 Nov 2009 15:52:47 +0000 |
| Subject: | note 94627 added to language.operators.assignment | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162934@lists.php.net to get a copy of this message | ||
Note that assignments will not use lazy evaluation.
<?php
foo(){
echo 'foo';
return true;
}
$bar = false;
$bar &= foo(); // will call foo()
$bar = $bar && foo(); // will not call foo()
?>
----
Server IP: 83.137.20.135
Probable Submitter: 94.208.31.162
----
Manual Page -- http://www.php.net/manual/en/language.operators.assignment.php
Edit -- https://master.php.net/note/edit/94627
Del: integrated -- https://master.php.net/note/delete/94627/integrated
Del: useless -- https://master.php.net/note/delete/94627/useless
Del: bad code -- https://master.php.net/note/delete/94627/bad+code
Del: spam -- https://master.php.net/note/delete/94627/spam
Del: non-english -- https://master.php.net/note/delete/94627/non-english
Del: in docs -- https://master.php.net/note/delete/94627/in+docs
Del: other reasons-- https://master.php.net/note/delete/94627
Reject -- https://master.php.net/note/reject/94627
Search -- https://master.php.net/manage/user-notes.php