[PHP-WINDOWS] do classes work properly? From: Andrew Hurley (ahurley <email protected>)
Date: 06/27/00

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.