Looks like "stolen" syntax from C/C++: E.g. it is a reference to the variable,
a.k.a. as pointer.

> -----Original Message-----
> From: Asendorf, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 24, 2002 3:06 PM
> To: Php-Windows (E-mail)
> Subject: [PHP-WIN] Moron question: What is the & in a class meant to do?
> 
> 
> 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();
> 
> Thanks in advance,  John
> 
> ---------------------
> John Asendorf - [EMAIL PROTECTED]
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
> Nullum magnum ingenium sine mixtura dementiae fuit
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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

Reply via email to