function a($function, $array)
{
global $test
$test->$function(implode(',' $array));
}
For example, I want to be able to pass the various arguments to a second function inside.
So if I passed a('x', array('a', 'b')) it'd execute $test->x('a', 'b');
The imploding obviously doesn't work due to making it a string, not passing arguments, unsure how to do it.