note 94627 deleted from language.operators.assignment by tularis
| From: | tularis@php.net | Date: | Sun, 12 Feb 2012 11:30:28 +0000 |
| Subject: | note 94627 deleted from language.operators.assignment by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-186082@lists.php.net to get a copy of this message | ||
Note Submitter: inca
----
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()
?>