How about:Yep, I have done something similar and it worked. The Reflection API is quite powerful.
return call_user_func_array( array(new ReflectionClass($className), 'newInstance'), $functionParameters );
Untested but should work.
- Timm
Andrey
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php