Re: &$ in functions
- From: Kim André Akerø <kimandre@xxxxxxxxxxxxxxxxxx>
- Date: 30 Nov 2007 09:20:31 GMT
Niels Lange wrote:
Hi guys,
at present I´m editing some old scripts from a colleague from mine. In
one function I fund something I didn´t understand. The function looks
like:
function foobar(&$val, $key = ' ')
{
...
}
Could anyone tell me what the &$ stands for? I tried to find some
informations in Google. But it is really difficult to find some
informations by using "php + &$" as a search string.
By using this, you can allow your function to modify the referenced
variable.
http://php.net/language.references.pass
--
Kim André Akerø
- kimandre@xxxxxxxxxxxxxxxxxx
(remove NOSPAM to contact me directly)
.
- Follow-Ups:
- Re: &$ in functions
- From: Niels Lange
- Re: &$ in functions
- References:
- &$ in functions
- From: Niels Lange
- &$ in functions
- Prev by Date: &$ in functions
- Next by Date: Re: Why I need to set the memory limit for large file upload?
- Previous by thread: Re: &$ in functions
- Next by thread: Re: &$ in functions
- Index(es):
Relevant Pages
|