downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

ReflectionClass::isInternal> <ReflectionClass::isInstantiable
[edit] Last updated: Fri, 17 May 2013

view this page in

ReflectionClass::isInterface

(PHP 5)

ReflectionClass::isInterface检查类是否是一个接口(interface)

说明

public bool ReflectionClass::isInterface ( void )

检查类是否是一个接口(interface)。

参数

此函数没有参数。

返回值

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

范例

Example #1 ReflectionClass::isInterface() 基本用法

<?php
interface SomeInterface {
    public function 
interfaceMethod();
}

$class = new ReflectionClass('SomeInterface');
var_dump($class->isInterface());
?>

以上例程会输出:

bool(true)

参见



add a note add a note User Contributed Notes ReflectionClass::isInterface - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites