Date: 09/15/00
- Next message: Stig S. Bakken: "Re: [PHP-DEV] stdin"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6766 Updated: problem with comparing stings with zero"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello
i've 2 class :
class TC1 {
var $a = "A";
};
class TC2 {
var $parent;
function TC2($p) {
$this->parent=$p;
}
};
c1 = new TC1;
c2 = nex TC2($c2);
and i will to show $c1->a using $c2
i've tried : echo "$c2->parent->a"; but it doesn't works.
i've to use another variable, like this :
$aparent=$c2->parent;
echo "$aparent->a";
how to do show variable a when calling directly class TC2?
Thanks.
Olivier ZILLER
CRI - Service Informatique de Gestion
Universite NANCY2
25 rue Baron Louis
BP 454 NANCY CEDEX
tel: 03 83 34 46 04 / 06.85.74.89.77
fax : 03 83 30 05 65
e-mail : Olivier.Ziller <email protected>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Stig S. Bakken: "Re: [PHP-DEV] stdin"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6766 Updated: problem with comparing stings with zero"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

