$this->name = $name; } public function woof() { echo "Bow-wow!" . "<br>"; } //If you want to call another function within the same class, you have //to use the keyword $this->functionName(); public function bark() { echo "bark, bark and "; $this->woof(); } } $myDog = new Dog("Fido"); $myDog->woof(); echo $myDog->name; echo "<br>"; echo $myDog->bark(); echo "<br>"; //Constants are all caps and have to use a function called define() to define them: define("MAX_WIDTH", 980); //In the function, you enter the name of the constant as a string echo MAX_WIDTH; echo "<br>"; /* You can't change a constant's value and you can't redefine it, either: MAX_WIDTH = MAX_WIDTH + 1; echo MAX_WIDTH; define("MAX_WIDTH", 981); echo MAX_WIDTH; */