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::hasPropertyReflectionClass::initializeLazyObject>
^ReflectionClassLast updated: Mon, 26 Oct 2026

ReflectionClass::implementsInterface

(PHP 5, PHP 7, PHP 8)

ReflectionClass::implementsInterface — Implements interface

Description

public function ReflectionClass::implementsInterface(ReflectionClass|string $interface): bool

Checks whether it implements an interface.

Parameters

interface

The interface name.

Return Values

Returns true on success or false on failure.

Errors/Exceptions

ReflectionClass::implementsInterface() throws an ReflectionException if interface is not an interface.

See Also


<ReflectionClass::hasPropertyReflectionClass::initializeLazyObject>
^ReflectionClassLast updated: Mon, 26 Oct 2026