Re: What does &var mean ?
| From: | Nayco_IUT Laroche | Date: | Thu, 22 Nov 2001 18:00:33 +0000 |
| Subject: | Re: What does &var mean ? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-75537@lists.php.net to get a copy of this message | ||
Ouupppss!!
You're right !!!
----- Original Message -----
From: J Smith <dark_panda@hushmail.com>
To: <php-general@lists.php.net>
Sent: Thursday, November 22, 2001 6:43 PM
Subject: Re: [PHP] What does &var mean ?
> Bas Jobsen wrote:
>
> >> What does the "&" (ampersand) before the variable name mean ?
> >
> > a pointer to the address (mem) of the variable
>
> PHP doesn't have pointers and memory can't be directly accessed this way
> like you can in C, or C++ or whatever. The ampersand is for passing values
> via reference rather than value. PHP has no notion of pointers.
>
> J
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
>