ReflectionClass
PHP 手册

ReflectionClass::implementsInterface

(PHP 5)

ReflectionClass::implementsInterfaceImplements interface

说明

public bool ReflectionClass::implementsInterface ( string $interface )

Checks whether it implements an interface.

参数

interface

The interface name.

返回值

如果成功则返回 TRUE,失败则返回 FALSE

参见


ReflectionClass
PHP 手册