Menu Riverview Church

GET_CLASS_METHODS

Gets the class methods' names

SYNTAX

get_class_methods ( mixed $class_name ) : array

PARAMETERS

class_name

The class name or an object instance

RETURN

Returns an array of method names defined for the class specified by class_name. In case of an error, it returns NULL.

EXAMPLES

CLASS_NAME | CLASS NAME

Array
(
    [0] => myfunction1
    [1] => myfunction2
)

CLASS_NAME | OBJECT INSTANCE

Array
(
    [0] => myfunction1
    [1] => myfunction2
)

PHP