Name
class_implements
Synopsis
array class_implements(mixedclass
[, boolautoload_class
])
If class
is an object,
returns an array containing the names of the interfaces implemented
by class
’s object class. If
class
is a string, returns an
array containing the names of the interfaces implemented by the
class named class
. Returns
false
if class
is neither an object nor a string,
or if class
is a string but no
object class of that name exists. If autoload_class
is set and is true
, the class is loaded through the
class’s _ _autoload( )
function
before getting the interfaces it implements.
Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.