ArticleDirectory
- Classes/objects function in PHP
Classes/objects function in PHP
Official documents: http://cn2.php.net/classobj
Function
-
- _ Autoload-attempt to load undefined class
-
- Call_user_method_array-call a user method and pass the parameter array (obsolete)
-
- Call_user_method-call the user Method for a specific object (obsolete)
-
- Class_alias-creates an alias for a class
-
- Class_exists-check whether the class is defined
-
- Get_called_class-the "Late static binding" Class Name
-
- Get_class_methods-returns an array composed of class method names.
-
- Get_class_vars-returns an array composed of the default attributes of the class.
-
- Get_class-Class Name of the returned object
-
- Get_declared_classes-returns an array composed of the names of defined classes.
-
- Get_declared_interfaces-returns an array containing all declared interfaces.
- Get_declared_traits-returns an array of all declared traits
-
- Get_object_vars-returns an associated array composed of object attributes.
-
- Get_parent_class-return the parent class name of the object or Class
-
- Interface_exists-check whether the interface has been defined
-
- Is_a-if the object belongs to this class or the class is the parent class of this object, true is returned.
-
- Is_subclass_of-if this object is a subclass of this class, true is returned.
-
- Method_exists-check whether the class method exists
-
- Property_exists-check whether the object or class has this attribute
-
- Trait_exists-checks if the trait exists