PHP

Class Variables

class dog {
   public $Name;

   public function bark() {
      print "Woof!\n";
   }
}

$poppy->Name = "Poppy";

//not this way:
$poppy->$Name = "Poppy";

José M. Vidal .

22 of 33