Re: Calling a class constructor
| From: | Sam Barrow | Date: | Wed, 30 Apr 2008 17:05:39 +0000 |
| Subject: | Re: Calling a class constructor | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37370@lists.php.net to get a copy of this message | ||
On Wed, 2008-04-30 at 10:03 -0700, Stanislav Malyshev wrote:
> Hi!
>
> > create_new(string $class, array $constructor_args)
>
> You can create new object via ReflectionClass::newInstance.
Still, that just seems unnecessary, I usually compile without the
reflection stuff because i never use it. I'd like to be able to use this
like call_user_func, I'm pretty much doing the same thing.
> --
> Stanislav Malyshev, Zend Software Architect
> stas@zend.com http://www.zend.com/
> (408)253-8829 MSN: stas@zend.com
>