Timm Friebe wrote:
How about:

  return call_user_func_array(
    array(new ReflectionClass($className), 'newInstance'),
    $functionParameters
  );

Untested but should work.

- Timm

Yep, I have done something similar and it worked. The Reflection API is quite powerful.

Andrey

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to