__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.