PHP Object Tool _php Tutorial

Source: Internet
Author: User

class_exists - checks if the class is defined and returns True if the class exists

get_class - returns the class name of the object

get_class_methods - Returns an array consisting of the method names of the class

get_declared_classes - Returns an array consisting of the names of the defined classes

is_callable - detects if the parameter is a legitimate callable structure

method_exists - checks whether the method of the class exists

BOOL method_exists( Mixed $object , string $method_name )

Checks whether the method of the class exists in object the specified.

get_class_vars - Returns an array of default properties of the class (only the public property is displayed)

Array Get_class_vars( string $class_name )

Returns an associative array of the default public properties of the class that exist in the form varname => value of elements of this array.

get_parent_class - Returns the parent class name of the object or class

is_subclass_of - If this object is a subclass of the class, return TRUE

Call_user_func -Call the callback given by the first parameter

Call_user_func_array -Call a callback with an array of parameters

The Flectionclass class reports information about a class.

Reflection::export - exports

http://www.bkjia.com/PHPjc/440166.html www.bkjia.com true http://www.bkjia.com/PHPjc/440166.html techarticle Class_exists Checks if the class is defined, returns True if the class exists Get_class returns the class name of the object Get_class_methods returns an array of the class's method names Get_declared_classes returns ...

  • Related Article

    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.