Re: Only variables or references can be returned by reference
| From: | Andi Gutmans | Date: | Mon, 12 Jan 2004 08:47:04 +0000 |
| Subject: | Re: Only variables or references can be returned by reference | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6988@lists.php.net to get a copy of this message | ||
At 04:34 PM 1/12/2004 +0900, Moriyoshi Koizumi wrote:
b) A function which returned a variable by reference couldn't be returned by reference. I think this one is probably OK to code. Do you mean a referenced variable returned by a function couldn't be returned as a reference by its caller? That is to say, function &foo() {Yeah there was a bug with this. It should work now. Andireturn $a;} function &bar() {return foo();} $a = &bar();