note 83734 deleted from language.references.pass by danbrown
| From: | danbrown@php.net | Date: | Thu, 28 Jan 2010 13:16:56 +0000 |
| Subject: | note 83734 deleted from language.references.pass by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165411@lists.php.net to get a copy of this message | ||
Note Submitter: dnhuff at acm dot org
----
madmax, the answer is that passing $b = $a does not pass $b.
"$b = $a" is an expression, expressions can not be passed by reference (E_NOTICE will tell
you that.)
I sure think that the compiler should "do what I mean" for foo($b = $a), but it
doesn't.