Php object tool_php tutorial

Source: Internet
Author: User
Php object tool. Class_exists check whether the class has been defined. if the class exists, trueget_class is returned. the class name get_class_methods of the returned object returns the array get_declared_classes consisting of the class's method names.

Class_exists-check whether the class is defined. if the class exists, true is returned.

Get_class-class name of the returned object

Get_class_methods-returns an array composed of class method names.

Get_declared_classes-returns an array composed of the names of defined classes.

Is_callable-check whether the parameter is a valid callable structure

Method_exists-check whether the class method exists

Bool Method_exists(Mixed $object, String $method_name)

Check whether the methods of the class exist in the specifiedobject.

Get_class_vars-returns an array composed of the default attributes of the class (only public attributes are displayed)

Array Get_class_vars(String $class_name)

Returns an associated array consisting of the default public attributes of the class.varname => value.

Get_parent_class-return the parent class name of the object or class

Is_subclass_of-if this object is a subclass of this class, returnTRUE

Call_user_func-Call the callback given by the first parameter

Call_user_func_array-Call a callback with an array of parameters

FlectionClassClass reports information about a class.

Reflection: export-Exports

The http://www.bkjia.com/PHPjc/440166.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/440166.htmlTechArticleclass_exists checks whether the class is defined. if the class exists, return true get_class to return the class name of the object get_class_methods to return the array get_declared_classes consisting of the class's method name to return...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.