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

search for in the

ReflectionClass::getInterfaces> <ReflectionClass::getFileName
Last updated: Fri, 20 Nov 2009

view this page in

ReflectionClass::getInterfaceNames

(PHP 5)

ReflectionClass::getInterfaceNamesGets the interface names

Description

public array ReflectionClass::getInterfaceNames ( void )

Get the interface names.

Parameters

This function has no parameters.

Return Values

A numerical array with interface names as the values.

Examples

Example #1 ReflectionClass::getInterfaceNames example

<?php
interface Foo { }

interface 
Bar { }

class 
Baz implements FooBar { }

$rc1 = new ReflectionClass("Baz");

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

The above example will output something similar to:

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

See Also



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

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