[PHP]Class Example 4

개발관련/PHP 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.

'개발관련 > PHP' 카테고리의 다른 글

[PHP]Cloning  (0) 2012.04.20
[PHP]Class Example 5  (0) 2012.04.20
[PHP]Class Example 3  (0) 2012.04.20
[PHP]Class Example 2  (0) 2012.04.20
[PHP]Class Example  (0) 2012.04.20
Posted by 파노카페
: