개발관련/PHP

[PHP]Class Example 4

파노카페 2012. 4. 20. 15:16
";
	}
	function hello() {
		$this->say_hello();
	}
}

$person = new Person();
$person->say_hello();
$person->hello();

?>

Hello from inside the class Person.
Hello from inside the class Person.