Re: how to do this with class?

From: Date: Sun, 17 Sep 2000 10:40:53 +0000
Subject: Re: how to do this with class?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17092@lists.php.net to get a copy of this message
On Fri, 15 Sep 2000, olivier ZILLER wrote: oZ>> Hello Hi. You should address such questions to php-general@lists.php.net. oZ>> i've 2 class : oZ>> oZ>> class TC1 { oZ>> var $a = "A"; oZ>> }; oZ>> oZ>> class TC2 { oZ>> var $parent; oZ>> oZ>> function TC2($p) { oZ>> $this->parent=$p; oZ>> } oZ>> }; oZ>> oZ>> c1 = new TC1; $c1 not c1 oZ>> c2 = nex TC2($c2); $c2 = new TC2($c1) And then it works. At least for me it works. -- Stanislav Malyshev stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106

« previous php.general (#17092) next »