Home > Backend Development > PHP Tutorial > php object tool_PHP tutorial

php object tool_PHP tutorial

WBOY
Release: 2016-07-20 11:15:44
Original
822 people have browsed it

class_existsChecks whether the class is defined and returns true if the class exists

get_classReturns the class name of the object

get_class_methodsReturns an array consisting of class method names

get_declared_classesReturns an array of names of defined classes

is_callableCheck whether the parameter is a legal callable structure

method_existsCheck whether a class method exists

  bool method_exists ( mixed $object , string $method_name )

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

get_class_varsReturns an array consisting of the default properties of the class (only public properties are shown)

 array get_class_vars ( string $class_name )

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

get_parent_classReturns the parent class name of the object or class

is_subclass_ofReturns if this object is a subclass of this class TRUE

call_user_funcCall the callback given by the first parameter

call_user_func_arrayCall a callback with an array of parameters

The

flectionClass class reports information about a class.

Reflection::exportExports

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/440166.htmlTechArticleclass_exists Check whether the class has been defined, if the class exists it returns true get_class Returns the class name of the object get_class_methods Returns the methods of the class Get_declared_classes, an array of names, returns...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template