[Document] classes/objects function in PHP

Source: Internet
Author: User
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

 

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.