Re: Using variable content to name a class
| From: | Dave M G | Date: | Mon, 05 Jun 2006 10:46:28 +0000 |
| Subject: | Re: Using variable content to name a class | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237397@lists.php.net to get a copy of this message | ||
Chris,
Thank you for replying.
Well, anyway, I guess I've stumbled on the right syntax. Thank you for pointing it out to me. -- Dave M G$object = new $className(); Is this possible?If in doubt, test it out ;) Yes, it will work. Oh, that's actually the code I can use? I just wrote it as an explanatory aid, not thinking that it could be literally done like that. I assumed there was a specific command I was missing.