Re: Moron question: What is the & in a class meant to do?
| From: | Daniel Beulshausen | Date: | Mon, 24 Jun 2002 15:19:26 +0000 |
| Subject: | Re: Moron question: What is the & in a class meant to do? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14374@lists.php.net to get a copy of this message | ||
At 09:06 24.06.2002 -0400, Asendorf, John wrote:
I'm a bit confused. I keep stealing code and using it for my own devious purposes and parts of it I don't understand. What is the "&" in a piece of code that looks like this meant to do? I looked all through the Class stuffit assigns the variable a reference rather than a copy of your function return value.
in the docs but can't seem to find the reason for it. $foo = &$bar->some_function(); Thanks in advance, Johnhttp://www.php.net/manual/en/language.references.php in particular http://www.php.net/manual/en/language.references.return.php daniel /*-- Daniel Beulshausen - daniel@php4win.com Using PHP on Windows? http://www.php4win.com