suche nach in der

ReflectionClass::getInterfaces> <ReflectionClass::getFileName
Last updated: Fri, 25 May 2012

view this page in

ReflectionClass::getInterfaceNames

(PHP 5 >= 5.2.0)

ReflectionClass::getInterfaceNamesGets the interface names

Beschreibung

public array ReflectionClass::getInterfaceNames ( void )

Get the interface names.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

A numerical array with interface names as the values.

Beispiele

Beispiel #1 ReflectionClass::getInterfaceNames() example

<?php
interface Foo { }

interface 
Bar { }

class 
Baz implements FooBar { }

$rc1 = new ReflectionClass("Baz");

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

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

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

Siehe auch



add a note add a note User Contributed Notes
ReflectionClass::getInterfaceNames
There are no user contributed notes for this page.