(PHP 5)
ReflectionClass::getInterfaceNames — Gets the interface names
Get the interface names.
此函数没有参数。
A numerical array with interface names as the values.
Example #1 ReflectionClass::getInterfaceNames() example
<?php
interface Foo { }
interface Bar { }
class Baz implements Foo, Bar { }
$rc1 = new ReflectionClass("Baz");
print_r($rc1->getInterfaceNames());
?>
以上例程的输出类似于:
Array ( [0] => Foo [1] => Bar )