variable object creating
| From: | Eli | Date: | Wed, 22 Jun 2005 03:33:10 +0000 |
| Subject: | variable object creating | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-217382@lists.php.net to get a copy of this message | ||
Hi,
I want to create an object in a form that I get the class name and its parameters, and I need to create that object...
How can this been done?
i.e:
$classname = "MyClass";
$construct_params = array("param1","param2","param3");
/* Now create the object with the given classname and params... how? */
-thanks, Eli