Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ReflectionClass::isInterfaceReflectionClass::isIterable>
^ReflectionClassLast updated: Mon, 26 Oct 2026

ReflectionClass::isInternal

(PHP 5, PHP 7, PHP 8)

ReflectionClass::isInternal — Checks if class is defined internally by an extension, or the core

Description

public function ReflectionClass::isInternal(): bool

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

Parameters

This function has no parameters.

Return Values

Returns true if the class is defined internally by an extension or core, or false otherwise.

Examples

Example #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());
?>

The above example will output:

bool(true)
bool(false)

See Also


<ReflectionClass::isInterfaceReflectionClass::isIterable>
^ReflectionClassLast updated: Mon, 26 Oct 2026