Start PHP Code RESULT
Hello! My name is William End PHP Code RESULT
The PHP Code START
class first_class {
var $name = "Harry";
function setName( $n ) {
$this->name = $n;
}
function sayHello() {
print "Hello! My name is $this->name<br />";
}
}
$obj1 = new first_class();
$obj1->setName("William");
$obj1->sayHello();