array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'reflectionclass.isinternal.php', 1 => 'ReflectionClass::isInternal', 2 => 'Checks if class is defined internally by an extension, or the core', ), 'up' => array ( 0 => 'class.reflectionclass.php', 1 => 'ReflectionClass', ), 'prev' => array ( 0 => 'reflectionclass.isinterface.php', 1 => 'ReflectionClass::isInterface', ), 'next' => array ( 0 => 'reflectionclass.isiterable.php', 1 => 'ReflectionClass::isIterable', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/reflection/reflectionclass/isinternal.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 5, PHP 7, PHP 8)
ReflectionClass::isInternal — Checks if class is defined internally by an extension, or the core
Checks if the class is defined internally by an extension, or the core, as opposed to user-defined.
У цієї функції немає параметрів.
Приклад #1 Basic usage of ReflectionClass::isInternal()
<?php
$internalclass = new ReflectionClass('ReflectionClass');
class Apple {}
$userclass = new ReflectionClass('Apple');
var_dump($internalclass->isInternal());
var_dump($userclass->isInternal());
?>
Поданий вище приклад виведе:
bool(true) bool(false)