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

search for in the

get_declared_traits> <get_declared_classes
[edit] Last updated: Fri, 24 May 2013

view this page in

get_declared_interfaces

(PHP 5)

get_declared_interfaces返回一个数组包含所有已声明的接口

说明

array get_declared_interfaces ( void )

返回一个数组包含所有已声明的接口。

返回值

本函数返回一个数组,其内容是当前脚本中所有已声明的接口的名字。

范例

Example #1 get_declared_interfaces() 例子

<?php
print_r
(get_declared_interfaces());
?>

以上例程的输出类似于:

Array
(
    [0] => Traversable
    [1] => IteratorAggregate
    [2] => Iterator
    [3] => ArrayAccess
    [4] => reflector
    [5] => RecursiveIterator
    [6] => SeekableIterator
)

参见



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

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