I just signed up for this google group with the hope that i will get
some help out here. I was looking into a source code given to me in
the office but i was unable to understand this funcion declaration,
can any body please help me
function & query ($sQuery) {
global $default;
$aParams = array();
if (is_array($sQuery)) {
$aParams = $sQuery[1];
$sQuery = $sQuery[0];
}
What is the & symbol is about in this code.
Thanks
function query(&$sQuery)
{
...
}
I've never seen it in front of a function name before. You'll find alot
more help in the newsgroups 'alt.php' and 'alt.comp.lang.php'
Norm
--
FREE Avatar hosting at www.easyavatar.com
"Abu Hafs" <abu...@gmail.com> wrote in message
news:c9f5db6b.05032...@posting.google.com...
If you put an ampersand before your function name, the function will
return a reference to a variable instead of the value.
------------------------------------
The Developer Network
http://thedevnet.com