I've seen variables passed by reference in a function: function add_some_extra(&$string)
But I haven't had the opportunity to work with this example: function &somefunc()
First what is it? Second, how do you use it?
mcibor
10:00 pm on Jun 27, 2005 (gmt 0)
To pass variable by reference you need to use ampersant in the function call, not in declaration function func($var) {$var = 2;} $a = 1; func(&$a);//$a = 2
However such structure: &func I have never yet seen (I've seen @func - it is to suppress echoing to screen).
Interesting what that may be. Have you tried searching at www.php.net?