Re: passing by reference
| From: | Andi Gutmans | Date: | Thu, 27 Dec 2001 15:28:15 +0000 |
| Subject: | Re: passing by reference | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78844@lists.php.net to get a copy of this message | ||
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