Re: instantiating a class

From: Date: Fri, 15 Sep 2000 09:30:04 +0000
Subject: Re: instantiating a class
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-16961@lists.php.net to get a copy of this message
Hi Remco! On Thu, 14 Sep 2000, Remco Chang wrote: > i think i have hit a bug in PHP regarding instantiating multiple objects > from within a class. hmm, I would say you hit the wrong link. Here it is: http://www.php.net/manual/language.oop.php take a good look @ the example and tell us what you missed :) hint: us dollars. > function MyClass { > $this->$obj1 = new SomeClass(); > $this->$obj2 = new SomeOtherClass(); > > $this->$obj1->doSomeStuff(); > $this->$obj2->doSomeOtherStuff(); cheers, -- teodor

« previous php.general (#16961) next »