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); ?>

ReflectionClass::isInternal

(PHP 5, PHP 7, PHP 8)

ReflectionClass::isInternalChecks if class is defined internally by an extension, or the core

Опис

public ReflectionClass::isInternal(): bool

Checks if the class is defined internally by an extension, or the core, as opposed to user-defined.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Повертає true у разі успіху або false в разі помилки.

Приклади

Приклад #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)

Прогляньте також