Possible Duplicate:
How can arguments to variadic functions be passed by reference in PHP?
I need to get the values from the arguments of a method
or function
. I know i can do this with func_get_args()
. But i really need to get the arguments by reference. Is there any way to do that?
I currently have this:
<?php
class Test
{
function someFunc ( $arg1, $arg2 )
{
print_r ( func_get_args() );
}
}
$t = new Test();
$t->someFunc('a1', 'a2');
?>
In my real code the argument values are passed to another class->method()
. In there i want to be able to change the argument values. This would be possible if i could get the values as reference.
Is there a solution for this?