$internalclass = new ReflectionClass('ReflectionClass');
class Apple {}
$userclass = new ReflectionClass('Apple');
var_dump($internalclass->isUserDefined());
var_dump($userclass->isUserDefined());
(PHP 5, PHP 7, PHP 8)
ReflectionClass::isUserDefined — Checks if user defined
Checks whether the class is user-defined, as opposed to internal.
Questa funzione non contiene parametri.
Restituisce true
in caso di successo, false
in caso di fallimento.
$internalclass = new ReflectionClass('ReflectionClass');
class Apple {}
$userclass = new ReflectionClass('Apple');
var_dump($internalclass->isUserDefined());
var_dump($userclass->isUserDefined());