How to get all variables defined in the current scope/symbol table?
PHP中是否有一个函数和/或对象和/或扩展可以让您查看当前作用域中定义的所有变量?比如:
1 |
但只显示当前符号表中的变量。
This function returns a multidimensional array containing a list of all defined variables, be them environment, server or user-defined variables, within the scope that
get_defined_vars() is called.
号
get_defined_vars()完全满足您的需要。
This function returns a multidimensional array containing a list of all defined variables, be them environment, server or user-defined variables, within the scope that get_defined_vars() is called.
号
1 2 3 4 5 6 |