(PHP 5)
This function returns an array with the names of the interfaces that the given class implements.
An object (class instance) or a string (class name).
Returns an array or FALSE on error.
Beispiel 1. class_implements() example
<?phpinterface foo { }class bar implements foo {}print_r(class_implements(new bar));?>
Das oben gezeigte Beispiel erzeugt folgende Ausgabe:
Array ( [foo] => foo )
Hosting by: Hurra Communications GmbHGenerated: 2007-01-26 17:57:13