do classes work properly?
| From: | Andrew Hurley | Date: | Tue, 27 Jun 2000 07:09:00 +0000 |
| Subject: | do classes work properly? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-672@lists.php.net to get a copy of this message | ||
Hello all.
This is my code:
class Test {
var $width;
var $height;
function Test () {
$this->$width = "really longgggggg";
$this->$height = "really highhhhhh";
}
function serve () {
print "This is the width: " . $this->$width . "<br>";
print "This is the height: " . $this->$height . "<br>";
}
}
The output I get is:
This is the width: really highhhhhh
This is the height: really highhhhhh
This happens with other classess too.
Any ideas?
Thanks.
Andrew.