Classes

From: Date: Wed, 09 Apr 2003 13:55:31 +0000
Subject: Classes
Groups: php.doc.nl 
Request: Send a blank email to doc-nl+get-255@lists.php.net to get a copy of this message
Hallo, ik heb een vraagje betreft classes. Waarom geeft de output van deze code : Hoi Hoi ---------start--------- class a { var $text1; var $text2; function SetText1($text) { $this->$text1 = $text; } function SetText2($text) { $this->$text2 = $text; } } class b extends a { function Test() { $this->SetText2("Hoi"); echo $this->$text1 . "<br>"; echo $this->$text2 . "<br>"; } } $a = new b; $a->test(); ---------end---------

« previous php.doc.nl (#255) next »