get_declared_interfaces

(PHP 5, PHP 7) Returns an array of all declared interfaces array get_declared_interfaces ( void ) Gets the declared interfaces. Returns: Returns an array of the names of the declared interfaces in the current script. Examples: get_declared_interfaces() example <?php print_r(get_declared_interfaces()); ?> The abov

get_declared_classes

(PHP 4, PHP 5, PHP 7) Returns an array with the name of the defined classes array get_declared_classes ( void ) Gets the declared classes. Returns: Returns an array of the names of the declared classes in the current script. Note: Note that depending on what extensions you have compiled or loaded into PHP, additional classes could be present. This means that you will not be able to define your

get_class

(PHP 4, PHP 5, PHP 7) Returns the name of the class of an object string get_class ([ object $object = NULL ] ) Gets the name of the class of the given object. Parameters: object The tested object. This parameter may be omitted when inside a class. Returns: Returns the name of the class of which object is an instance. Returns FALSE if object is n

get_class_vars

(PHP 4, PHP 5, PHP 7) Get the default properties of the class array get_class_vars ( string $class_name ) Get the default properties of the given class. Parameters: class_name The class name Returns: Returns an associative array of declared properties visible from the current scope, with their default value. The resulting array elements are in th

get_class_methods

(PHP 4, PHP 5, PHP 7) Gets the class methods' names array get_class_methods ( mixed $class_name ) Gets the class methods names. Parameters: class_name The class name or an object instance Returns: Returns an array of method names defined for the class specified by class_name. In case of an error, it returns NULL.

get_called_class

(PHP 5 >= 5.3.0, PHP 7) the "Late Static Binding" class name string get_called_class ( void ) Gets the name of the class the static method is called in. Returns: Returns the class name. Returns FALSE if called from outside a class. Examples: Using get_called_class() <?php class foo {     static public function test

class_exists

(PHP 4, PHP 5, PHP 7) Checks if the class has been defined bool class_exists ( string $class_name [, bool $autoload = true ] ) This function checks whether or not the given class has been defined. Parameters: class_name The class name. The name is matched in a case-insensitive manner. autoload Whether or not to call __autoload by defau

class_alias

(PHP 5 >= 5.3.0, PHP 7) Creates an alias for a class bool class_alias ( string $original, string $alias [, bool $autoload = TRUE ] ) Creates an alias named alias based on the user defined class original. The aliased class is exactly the same as the original class. Parameters: original The original class. alias The alias name for the

call_user_method

(PHP 4, PHP 5) Call a user method on an specific object mixed call_user_method ( string $method_name, object &$obj [, mixed $parameter [, mixed $... ]] ) Parameters: method_name The method name being called. obj The object that method_name is being called on. parameter ... The optional parameters.

call_user_method_array

(PHP 4 >= 4.0.5, PHP 5) Call a user method given with an array of parameters mixed call_user_method_array ( string $method_name, object &$obj, array $params ) Parameters: method_name The method name being called. obj The object that method_name is being called on. params An array of parameters.