Page 1 of 1

Whats the ampersand for?

Posted: Thu Aug 12, 2010 8:06 am
by Borojimmy
Ive just been sent an example of an xml-rpc app,

when loooking through the app Ive noticed that the functions have an ampersand in them:


Code: Select all

function & functionName(param1, param2)
{
//do something here...
}
what is the

Code: Select all

&
used for?


thanks in advance


Jimmy

Re: Whats the ampersand for?

Posted: Thu Aug 12, 2010 9:08 am
by MindOverBody
An ampersand before a function name means the function will return a reference to a variable instead of the value

Re: Whats the ampersand for?

Posted: Thu Aug 12, 2010 9:08 am
by AbraCadaver