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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php