GoLang ReflectionClass::getInterfaceNames

request it (329)
GoLang replacement for PHP's ReflectionClass::getInterfaceNames [edit | history]



Do you know a GoLang replacement for PHP's ReflectionClass::getInterfaceNames? Write it!

PHP ReflectionClass::getInterfaceNames

PHP original manual for ReflectionClass::getInterfaceNames [ show | php.net ]

ReflectionClass::getInterfaceNames

(PHP 5 >= 5.2.0, PHP 7)

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