php-windows Digest 25 May 2004 16:30:07 -0000 Issue 2261
Topics (messages 23826 through 23828):
Ampersand before function name
23826 by: Ross Honniball
23827 by: Jeroen Serpieters
23828 by: Jason Barnett
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
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.
.
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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.
--- End Message ---