Re: Moron question: What is the & in a class meant to do?
| From: | Chris Boget | Date: | Mon, 24 Jun 2002 13:14:23 +0000 |
| Subject: | Re: Moron question: What is the & in a class meant to do? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14373@lists.php.net to get a copy of this message | ||
> 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 stuff
> in the docs but can't seem to find the reason for it.
> $foo = &$bar->some_function();
I've never seen it used like that, but the & means pass "by reference" instead
of the default *by value".
Chris