Name
method_exists
Synopsis
bool method_exists(objectobject
, stringname
)
Returns true
if the object contains a method with
the name given in the second parameter or false
otherwise. The method may be defined in the class of which the object
is an instance, or in any superclass of that class.
Get Programming PHP 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.