Posted by Kim Andrι Akerψ on 11/30/07 09:20
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@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
[Back to original message]
|