Ampersand before function name

Just curious about what the apmersand does in this context:

function & funcname ($parm) {}

(Can't find it in the manual for some reason)
..
.. Ross Honniball. JCU Bookshop Cairns, Qld, Australia.
..

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ross Honniball [ Di, 25 Mai 2004 09:21 ] [ ID #199629 ]

Re: Ampersand before function name

On Tue, 25 May 2004, Ross Honniball wrote:

>
> function & funcname ($parm) {}
>

With the ampersand you return a reference to a variable instead of the
value.

--
Jeroen

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
-- Martin Golding

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jeroen Serpieters [ Di, 25 Mai 2004 10:22 ] [ ID #199630 ]

Re: Ampersand before function name

Ross Honniball wrote:
> Just curious about what the apmersand does in this context:
>
> function & funcname ($parm) {}

This means the function is supposed to return a reference by default
instead of a value.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason Barnett [ Di, 25 Mai 2004 18:30 ] [ ID #199631 ]
PHP » gmane.comp.php.windows » Ampersand before function name

Vorheriges Thema: tgz files
Nächstes Thema: PHP and FLASH Remoting - can it be done?