Date: 06/27/00
- Next message: Csuri Peter: "[PHP-WINDOWS] PHP 4.0.1 Beta"
- Previous message: Robert J Sherman: "[PHP-WINDOWS] Apache win32 w/PHP3 Compiled in the installer."
- Next in thread: Stanislav Malyshev: "Re: [PHP-WINDOWS] do classes work properly?"
- Reply: Stanislav Malyshev: "Re: [PHP-WINDOWS] do classes work properly?"
- Maybe reply: Giuseppe D'Ambrosio: "Re: [PHP-WINDOWS] do classes work properly?"
- Reply: John Steele: "[PHP-WIN] Re: [PHP-WINDOWS] do classes work properly?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Csuri Peter: "[PHP-WINDOWS] PHP 4.0.1 Beta"
- Previous message: Robert J Sherman: "[PHP-WINDOWS] Apache win32 w/PHP3 Compiled in the installer."
- Next in thread: Stanislav Malyshev: "Re: [PHP-WINDOWS] do classes work properly?"
- Reply: Stanislav Malyshev: "Re: [PHP-WINDOWS] do classes work properly?"
- Maybe reply: Giuseppe D'Ambrosio: "Re: [PHP-WINDOWS] do classes work properly?"
- Reply: John Steele: "[PHP-WIN] Re: [PHP-WINDOWS] do classes work properly?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

