(PHP 5 >= 5.2.0, PHP 7)
ReflectionClass::getInterfaceNames — Gets the interface names
Get the interface names.
Această funcție nu are parametri.
A numerical array with interface names as the values.
Example #1 ReflectionClass::getInterfaceNames() example
<?php
interface Foo { }
interface Bar { }
class Baz implements Foo, Bar { }
$rc1 = new ReflectionClass("Baz");
print_r($rc1->getInterfaceNames());
?>
Exemplul de mai sus va afișa ceva similar cu:
Array ( [0] => Foo [1] => Bar )