PHP Class/Object functions

Source: Internet
Author: User
Tags deprecated php class

  • __autoload-attempting to load an undefined class

  • call_user_method_array-invokes a user method, passing a parameter array (deprecated)

  • Call_user_method-invoking a user method on a specific object (deprecated)

  • class_alias-Creating an alias for a class

  • class_exists-checking whether a class is defined

  • get_called_class-Late static binding ("late static binding") class name

  • get_class_methods-returns an array of the method names of the class

  • get_class_vars-returns an array that consists of the default properties of the class

  • get_class-returns the class name of the object

  • get_declared_classes-returns an array consisting of the names of the defined classes

  • get_declared_interfaces-returns an array containing all the declared interfaces

  • get_declared_traits-returns an array of all defined traits

  • get_object_vars-returns an associative array consisting of object properties

  • get_parent_class-returns the parent class name of an object or class

  • interface_exists-Check if the interface has been defined

  • is_a-returns TRUE if the object belongs to the class or if the class is the parent class of this object

  • is_subclass_of-returns TRUE If this object is a subclass of the class

  • method_exists-checking the existence of a class's methods

  • property_exists-checking whether an object or class has this property

  • trait_exists-checks if the specified trait exists


PHP Class/Object functions

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.