©
                    本文档使用
                    php中文网手册 发布
                
(PHP 5)
ReflectionClass::getInterfaces — 获取接口
获取接口。
此函数没有参数。
接口的关联 数组 ,数组键是接口(interface)的名称,数组的值是 ReflectionClass 对象。
Example #1 ReflectionClass::getInterfaces() 例子
  <?php
 interface  Foo  { }
interface  Bar  { }
class  Baz  implements  Foo ,  Bar  { }
 $rc1  = new  ReflectionClass ( "Baz" );
 print_r ( $rc1 -> getInterfaces ());
 ?>   以上例程的输出类似于:
Array
(
    [Foo] => ReflectionClass Object
        (
            [name] => Foo
        )    [Bar] => ReflectionClass Object
        (
            [name] => Bar
        ))