Re: Instantiating class, classname in constant
| From: | Greg Beaver | Date: | Mon, 30 Aug 2004 14:45:31 +0000 |
| Subject: | Re: Instantiating class, classname in constant | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195164@lists.php.net to get a copy of this message | ||
Wouter Van Vliet wrote:
Hi Fella's, Some of you might or might not remember me. I've been here before and I am here again. Hoping to stick around, ask, wonder and help a lot. So much for a starter. Now, aren't all of you as excited about php5 as I am? What a great change to the object model. Especially, .. well, basically all modifications are as good as all of the others. There's only one thing I can't seem to get working - not after googling, trying, searching, reading. Not even after just trying everything I thought to be reasonable. It's the following: <?php class Foo {<?php $bar = Foo::Bar; $bar = new $bar; ?> Gregconst Bar = 'Foo_Bar';const Chocolate = 'Foo_Chocolate';const Target = 'Foo Target';} $bar = new Foo::Bar(); ?>