Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001122

Re: [PHP] passing by reference From: Andi Gutmans (andi <email protected>)
Date: 12/27/01

On Thu, 27 Dec 2001, Kancha . wrote:

> I coulnd't figure out the difference between the two:
>
> function &foo(){
> $x = "hello";
> return $x;
> }
>
> and
>
> function foo(){
> $x = "hello";
> return &$x;
> }

return &$x will give you a parser error.

Andi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>