func_get_args...
| From: | Sean Malloy | Date: | Fri, 10 Jan 2003 04:24:25 +0000 |
| Subject: | func_get_args... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-131037@lists.php.net to get a copy of this message | ||
Is this possible;
function TestRef()
{
$var =& func_get_arg(0);
++$var;
}
$b = 1;
TestRef($b);
echo $b;
It doesn't seem to work. Is there a way to do it?
Or am I wasting my time trying to do this?
(Yes I am aware I could define TestRef(&$b)), but I can't, reason being; I'm
trying to create a couple of functions that 'sort of' emulate function
overloading, but also allow me to pass a couple of objects by reference
rather than value
Anyone tried to do this already?