note 46051 deleted from language.oop by aidan

From: Date: Tue, 28 Sep 2004 12:16:58 +0000
Subject: note 46051 deleted from language.oop by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77508@lists.php.net to get a copy of this message
Note Submitter: yroon at hotmail dot com ---- I got a really wierd situation. It might be me, or something else. I defined a class (test) like this: class Test { var $param; var $something; function Test ($par, $some) { $this->$param = $par; $this->$something = $some; } function prn () { echo $this->$param . "<br>" . $this->$something; } } calling: $test = new Test("hello","there"); $test->prn(); output: there there Can someone tell me what I missed here ...

« previous php.notes (#77508) next »