$internalclass = new ReflectionClass('ReflectionClass');
class Apple {}
$userclass = new ReflectionClass('Apple');
var_dump($internalclass->isUserDefined());
var_dump($userclass->isUserDefined());
(PHP 5, PHP 7)
ReflectionClass::isUserDefined — Checks if user defined
Checks whether the class is user-defined, as opposed to internal.
이 함수는 인수가 없습니다.
성공 시 TRUE
를, 실패 시 FALSE
를 반환합니다.
$internalclass = new ReflectionClass('ReflectionClass');
class Apple {}
$userclass = new ReflectionClass('Apple');
var_dump($internalclass->isUserDefined());
var_dump($userclass->isUserDefined());