Re: Using & before a variable
| From: | Craig Donnelly | Date: | Fri, 03 Sep 2004 10:54:15 +0000 |
| Subject: | Re: Using & before a variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195708@lists.php.net to get a copy of this message | ||
http://php.us.themoes.org/manual/en/language.references.pass.php
Passing by reference instead of value.
HTH
Craig
"Shaun" <shaunthornburgh@hotmail.com> wrote in message
news:20040903094158.45489.qmail@pb1.pair.com...
> Hi,
>
> I have noticed that some of the functions in a tutorial I am studying have
> an & in the variable parameters i.e.
>
> function add(&$id) {
> /* function body */
> }
>
> I would be most grateful if some can shed some light on this as i cant fnd
> any reference to this in the PHP manual...
>
> Thanks