: This article mainly introduces the system functions and operators of PHP related classes and objects. if you are interested in PHP tutorials, please refer to them.
System functions
- Class_exists ()
Determine whether a class exists
- Interface_exists ()
Determine whether an interface exists
- Get_class ()
Obtains the class name of an object.
- Get_parent_class ()
Obtains the class name of the parent class of an object.
- Get_class_methods ()
Obtains all methods of a class and returns an index array.
- Get_class_vars ()
Obtains all the attributes of a class. the subscript is the attribute name.
- Get_declared_classes ()
Obtain all declared classes (including system classes)
- Is_object ()
Determine whether the object is
- Get_object_vars ()
Obtains all the attributes of an object, returns an array, and the subscript is the attribute name.
Operator
- New
- InstanceOf determines whether an object is an instance of a class (including inheritance ).
Classbee {}$ o = new bee (); if ($ oinstanceOf bee) {echo 'true ';}
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above introduces the system functions and operators of PHP related classes and objects, including some content, and hope to help those who are interested in PHP tutorials.