ReflectionClass
PHP Manual

ReflectionClass::implementsInterface

(PHP 5)

ReflectionClass::implementsInterface接口的实现

说明

public bool ReflectionClass::implementsInterface ( string $interface )

检查它是否实现了一个接口(interface)。

参数

interface

接口(interface)的名称。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见


ReflectionClass
PHP Manual