note 20827 rejected from language.oop by sander
| From: | sander@php.net | Date: | Wed, 17 Apr 2002 16:38:11 +0000 |
| Subject: | note 20827 rejected from language.oop by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29493@lists.php.net to get a copy of this message | ||
Just to clear up some earlier user notes, you can instantiate classes dynamically with the following
function declaration:
function newInstance($classname) {
return eval("return new $classname;");
}