Mega Code Archive
Categories
/
Php
/
Class
$this keyword refers to the instance from within the class definition
name = $name; $this->breed = $breed; } } $tweety = new Bird('Tweety', 'canary'); printf("
%s is a %s.
\n", $tweety->name, $tweety->breed); ?>