Possible Duplicate:
Call php class method from string with parameter
I am trying to call a method in a class from a string of the method and a string of the class, by means of call_user_func_array()
For Example:
$class = 'Posts';
$classObj = new $class();
$func = 'makePost';
$params = array('something', 'somethingelse');
call_user_func_array($classObj->$func, $params);
This does not work for me. :C
How do I go about doing this?