[PHP]Class Example 2
개발관련/PHP 2012. 4. 20. 15:14 |"; } } $methods = get_class_methods('Person'); foreach($methods as $method) { echo $method . "
"; } if(method_exists('Person', 'say_hello')) { echo "Method does exist.
"; } else { echo "Method does not exist.
"; } ?>
say_hello
Method does exist.
'개발관련 > PHP' 카테고리의 다른 글
[PHP]Class Example 4 (0) | 2012.04.20 |
---|---|
[PHP]Class Example 3 (0) | 2012.04.20 |
[PHP]Class Example (0) | 2012.04.20 |
[PHP]Array Functions (0) | 2012.04.20 |
[PHP]Access Modifiers 2 (0) | 2012.04.20 |