I have a similar question to this one : PHP can I call unexistent function with call_user_func
I need to call a method defined width __call but i don't know how many parameter to pass. So I am using this :
call_user_func_array(array($object, $method_name), $arguments);
But it doesn't work. Actually, this works :
$object->$method_name();
But i don't know how to pass parameter by an other way that call_user_func_array...
I wan't something like :
$object->$method_name($arguments[0], $arguments[1], $arguments[2] /*,... until no more args*/);
An idea ? Thank you
__call()method, by editing your question, because it should just work.