PHP ReflectionClass::implementsInterface 反射函数
-
定义和用法
ReflectionClass::implementsInterface - 接口的实现 -
版本支持
PHP4 PHP5 PHP7 不支持 支持 支持 -
语法
ReflectionClass::implementsInterface() 检查它是否实现了一个接口(interface)。 -
参数
参数 必需的 描述 interface 是 接口(interface)的名称。 -
返回值
成功时返回 TRUE, 或者在失败时返回 FALSE。 -
示例
-
相关页面
ReflectionClass::isInterface() - 检查类是否是一个接口(interface)ReflectionClass::isSubclassOf() - 检查是否为一个子类interface_exists() - 检查接口是否已被定义