classkit_import

(PECL classkit >= 0.3) Import new class method definitions from a file array classkit_import ( string $filename ) Note: This function cannot be used to manipulate the currently running (or chained) method. Parameters: filename The filename of the class method definitions to import Returns: Associative array of imported methods

trait_exists

(PHP 5 >= 5.4.0, PHP 7) Checks if the trait exists bool trait_exists ( string $traitname [, bool $autoload ] ) Parameters: traitname Name of the trait to check autoload Whether to autoload if not already loaded. Returns: Returns TRUE if trait exists, FALSE if not, NULL in case of an error.

property_exists

(PHP 5 >= 5.1.0, PHP 7) Checks if the object or class has a property bool property_exists ( mixed $class, string $property ) This function checks if the given property exists in the specified class. Note: As opposed with isset(), property_exists() returns TRUE even if the property has the value NULL. Parameters: class The class name or an object of the class to

method_exists

(PHP 4, PHP 5, PHP 7) Checks if the class method exists bool method_exists ( mixed $object, string $method_name ) Checks if the class method exists in the given object. Parameters: object An object instance or a class name method_name The method name Returns: Returns TRUE if the method given by method_name has

is_subclass_of

(PHP 4, PHP 5, PHP 7) Checks if the object has this class as one of its parents or implements it. bool is_subclass_of ( mixed $object, string $class_name [, bool $allow_string = TRUE ] ) Checks if the given object has the class class_name as one of its parents or implements it. Parameters: object A class name or an object instance. No error is generated if the class does

is_a

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Checks if the object is of this class or has this class as one of its parents bool is_a ( object $object, string $class_name [, bool $allow_string = FALSE ] ) Checks if the given object is of this class or has this class as one of its parents. Parameters: object The tested object class_name The class n

interface_exists

(PHP 5 >= 5.0.2, PHP 7) Checks if the interface has been defined bool interface_exists ( string $interface_name [, bool $autoload = true ] ) Checks if the given interface has been defined. Parameters: interface_name The interface name autoload Whether to call __autoload or not by default. Returns: Returns T

get_parent_class

(PHP 4, PHP 5, PHP 7) Retrieves the parent class name for object or class string get_parent_class ([ mixed $object ] ) Retrieves the parent class name for object or class. Parameters: object The tested object or class name. This parameter is optional if called from the object's method. Returns: Returns the name of the parent class of the class of

get_object_vars

(PHP 4, PHP 5, PHP 7) Gets the properties of the given object array get_object_vars ( object $object ) Gets the accessible non-static properties of the given object according to scope. Parameters: object An object instance. Returns: Returns an associative array of defined object accessible non-static properties for the specified object in scope.

get_declared_traits

(PHP 5 >= 5.4.0, PHP 7) Returns an array of all declared traits array get_declared_traits ( void ) Returns: Returns an array with names of all declared traits in values. Returns NULL in case of a failure. See also: class_uses() -