"Method exists"의 두 판 사이의 차이

17번째 줄: 17번째 줄:
*[[extends]]
*[[extends]]
*[[property_exists]]
*[[property_exists]]
*[[function_exists]]
*[[is_callable]]
*[[class_exists]]


[[분류: 메소드]]
[[분류: 메소드]]

2014년 8월 24일 (일) 17:49 판

method_exists

1 PHP

$directory = new Directory('.');
var_dump(method_exists($directory,'read'));
// bool(true)
static method
var_dump(method_exists('Directory','read'));
// bool(true)

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}