<? class DogTag { public $Words; } class Dog { public $Name; public $DogTag; public function bark( ) { print "Woof!\n"; } } $poppy = new Poodle; $poppy->Name = "Poppy"; $poppy->DogTag = new DogTag; $poppy->DogTag->Words = "call 555-1234"; ?>