Re: classes in php5

From: Date: Wed, 29 Sep 2004 02:42:44 +0000
Subject: Re: classes in php5
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-198141@lists.php.net to get a copy of this message
* Thus wrote Daniel Watrous: > Hello all, > > I have a class Foo. In PHP4 I could create an instance of Foo in the following manner: > $className = "Foo"; > $fooInstance = new $className; > > This would yield the same result as: > $fooInstance = new Foo; Can you provide the definition of your class Foo. what you describe works find in php5. Curt -- The above comments may offend you. flame at will.

« previous php.general (#198141) next »