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

search for in the

ReflectionClass::getMethod> <ReflectionClass::getInterfaceNames
[edit] Last updated: Fri, 23 Mar 2012

view this page in

ReflectionClass::getInterfaces

(PHP 5)

ReflectionClass::getInterfacesArayüzleri döndürür

Açıklama

public array ReflectionClass::getInterfaces ( void )

Arayüzleri döndürür.

Değiştirgeler

Bu işlevin değiştirgesi yoktur.

Dönen Değerler

Anahtarların arayüz isimlerini, değerlerin ise ReflectionClass nesnelerini içerdiği bir dizi döner.

Örnekler

Örnek 1 - ReflectionClass::getInterfaces() örneği

<?php
interface Foo { }

interface 
Bar { }

class 
Baz implements FooBar { }

$rc1 = new ReflectionClass("Baz");

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

Yukarıdaki örnek şuna benzer bir çıktı üretir:

Array
Array
(
    [Foo] => ReflectionClass Object
        (
            [name] => Foo
        )

    [Bar] => ReflectionClass Object
        (
            [name] => Bar
        )

)

Ayrıca Bakınız



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

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