Home > Backend Development > PHP Tutorial > How to use Torchlight 2 mod file to get classes, methods and attributes in PHP

How to use Torchlight 2 mod file to get classes, methods and attributes in PHP

WBOY
Release: 2016-07-29 08:40:25
Original
1229 people have browsed it
__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.

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