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 stuff

it 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,  John

http://www.php.net/manual/en/language.references.php
in particular http://www.php.net/manual/en/language.references.return.php

daniel

/*--
Daniel Beulshausen - [EMAIL PROTECTED]
Using PHP on Windows? http://www.php4win.com


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to