ReflectionClass
PHP Manual

ReflectionClass::getInterfaceNames

(PHP 5)

ReflectionClass::getInterfaceNamesGets the interface names

Описание

public array ReflectionClass::getInterfaceNames ( void )

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 FooBar { }

$rc1 = new ReflectionClass("Baz");

print_r($rc1->getInterfaceNames());
?>

Примерът по-горе ще изведе нещо подобно на:

Array
(
    [0] => Foo
    [1] => Bar
)

Вж. също


ReflectionClass
PHP Manual