http://nenuno.co.uk/php/call_user_func_array-invoke-function-or-method/
<?php
class foo {
function bar ($arg, $arg2) {
echo __METHOD__, " got $arg and $arg2\n";
}
}
// Call the $foo->bar() method with 2 arguments
$foo = new foo;
call_user_func_array(array($foo, "bar"), array("param1", "param2"));
The above example will output something similar to:
foo::bar got param1 and param2