KRISTOFFER BOHMANN
[BETA]
Forside
Om KB
Kompetencer
Referencer
Classes/Objects
call_user_method
call_user_method_array
class_alias
class_exists
get_called_class
get_class
get_class_methods
get_class_vars
get_declared_classes
get_declared_interfaces
get_object_vars
get_parent_class
interface_exists
is_a
is_subclass_of
method_exists
property_exists
Home
>
PHP
>
Function
>
Classes/Objects
>
method_exists()
method_exists()
method_exists - Checks if the class method exists
Syntax
bool
method_exists
(
mixed
$object,
string
$method_name)
Arguments
object - An object instance or a class name
method_name - The method name
Description
Checks if the class method exists in the given object.
Version
PHP 4, 5
Return value
Returns TRUE if the method given by method_name has been defined for the given object, FALSE otherwise.