Re: loading classes and efficiency
| From: | daniel at electroteque dot org | Date: | Thu, 11 Sep 2003 00:30:45 +0000 |
| Subject: | Re: loading classes and efficiency | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162232@lists.php.net to get a copy of this message | ||
> $foo_object = CreateObject('FooObject');
:D
How would it look you reckon ?
function CreateObject($class) {
include('$class.".php"');
return new $class;
}
??