Hi!

On 10/18/11 2:43 PM, Alain Williams wrote:
It probably does, but it is quite subtle. I was expecting the above to work 
since
it does in C -- although in C&variable is an address which can be used in an
expression ... the PHP '&' operator is different, in spite of apparent 
similarities.

Actually, in PHP standalone & doesn't even make any sense. PHP has certain operations - assignment by reference (bind two names to one variable) and passing by reference (which is the same thing but cross-scope) and returning by reference (which again is the same thing but in opposite direction). But unlike C there's no operation "taking reference" because while C has pointers PHP doesn't have anything like that.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to