ReflectionClass::implementsInterface

(PHP 5, PHP 7, PHP 8)

ReflectionClass::implementsInterface接口的实现

说明

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

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

参数

interface

接口(interface)的名称。

返回值

成功时返回 true, 或者在失败时返回 false

参见

7i24.Com