English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
These functions allow you to obtain information about classes and instance objects. You can get the name of the class to which the object belongs and its member properties and methods.
These functions can be used without installation. They are part of the PHP core.
PHP version-Indicates the earliest PHP version that supports this function.
Number | Function name | Function description | PHP version |
---|---|---|---|
1 | call_user_method_array() | Call a user method with an array of parameters[Deprecated] | 4 |
2 | call_user_method() | Call a user method for a specific object[Deprecated] | 4 |
3 | class_exists() | Check if a class has been defined | 4 |
4 | get_class_methods() | Get the names of class methods | 4 |
5 | get_class_vars() | Get the default properties of a class | 4 |
6 | get_class() | Return the name of the class of an object | 4 |
7 | get_declared_classes() | Return an array with defined class names | 4 |
8 | get_declared_interfaces() | Return an array of all declared interfaces | 5 |
9 | get_object_vars() | Get the properties of a given object | 4 |
10 | get_parent_class() | Retrieve the name of the parent class of an object or class | 4 |
11 | interface_exists() | Check if an interface has been defined | 5 |
12 | is_a() | Check if an object belongs to this class or has this class as one of its parent objects | 4 |
13 | is_subclass_of () | Check if an object has this class as one of its parent classes | 4 |
14 | method_exists() | Check if a class method exists | 4 |
15 | property_exists() | Check if an object or class has a property | 5 |
16 | __autoload() | Attempt to load an undefined class | 5 |
17 | class_alias() | Create an alias for a class | 5 |
18 | get_called_class() | The name of the class with late static binding ("Late Static Binding") | 5 |
19 | get_declared_traits() | Return an array of all defined traits | 5 |
20 | trait_exists() | Check if the specified trait exists. | 5 |