[PHP] Re: [PHP-DEV] how to do this with class? From: Stanislav Malyshev (stas <email protected>)
Date: 09/17/00

On Fri, 15 Sep 2000, olivier ZILLER wrote:

oZ>> Hello

Hi. You should address such questions to php-general <email protected>

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 <email protected>  http://www.zend.com/        
+972-3-6139665 ext.106

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>