(PHP 5 >= 5.2.0, PHP 7)
Gets the interface names
public array ReflectionClass::getInterfaceNames ( void )
Get the interface names.
Returns:
A numerical array with interface names as the values.
Examples:
ReflectionClass::getInterfaceNames() example
1 2 3 4 5 6 7 8 9 10 11 | <?php interface Foo { } interface Bar { } class Baz implements Foo, Bar { } $rc1 = new ReflectionClass( "Baz" ); print_r( $rc1 ->getInterfaceNames()); ?> |
The above example will output something similar to:
Array ( [0] => Foo [1] => Bar )
See also:
Please login to continue.