Re: new_object_array()

From: Date: Sun, 25 Apr 2004 17:24:30 +0000
Subject: Re: new_object_array()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-9556@lists.php.net to get a copy of this message
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

« previous php.internals (#9556) next »