如何获取当前作用域/符号表中定义的所有变量? [英] How to get all variables defined in the current scope/symbol table?
本文介绍了如何获取当前作用域/符号表中定义的所有变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
PHP中是否有一个函数和/或对象和/或扩展,可以让您查看当前作用域中定义的所有变量?像这样:
Is there a function and/or object and/or extension in PHP that will let you view all the variables defined in the current scope? Something like:
var_export($GLOBALS)
但仅在当前符号表中显示变量.
but only showing variables in the current symbol table.
推荐答案
查看全文