[PHP]Class Example 3
개발관련/PHP 2012. 4. 20. 15:15 |"; } } $person = new Person(); $person2 = new Person(); echo get_class($person) . "
"; if(is_a($person, 'Person')) { echo "Yup, it's a Person.
"; } else { echo "Not a Person.
"; } $person->say_hello(); ?>
Person
Yup, it's a Person.
Hello from inside a class.
'개발관련 > PHP' 카테고리의 다른 글
[PHP]Class Example 5 (0) | 2012.04.20 |
---|---|
[PHP]Class Example 4 (0) | 2012.04.20 |
[PHP]Class Example 2 (0) | 2012.04.20 |
[PHP]Class Example (0) | 2012.04.20 |
[PHP]Array Functions (0) | 2012.04.20 |