__CLASS__ Get the current class name, case-sensitive
__FUNCTION__ The current function name, case-sensitive
__METHOD__ The current method name, case-sensitive
get_class(obj);//Get the class name of the class where the current statement is located
get_class_methods(obj) ;//Get all the method names of obj and form an array
get_class_vars(obj);//Get all the highlighted names of obj and form an array
The above introduces how to use the Torchlight 2 mod file to obtain classes, methods, and attributes in PHP, including how to use the Torchlight 2 mod file. I hope it will be helpful to friends who are interested in PHP tutorials.
Statement: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