<tfoot id='v3erc'></tfoot>

    1. <legend id='v3erc'><style id='v3erc'><dir id='v3erc'><q id='v3erc'></q></dir></style></legend>

      <small id='v3erc'></small><noframes id='v3erc'>

          <bdo id='v3erc'></bdo><ul id='v3erc'></ul>
      1. <i id='v3erc'><tr id='v3erc'><dt id='v3erc'><q id='v3erc'><span id='v3erc'><b id='v3erc'><form id='v3erc'><ins id='v3erc'></ins><ul id='v3erc'></ul><sub id='v3erc'></sub></form><legend id='v3erc'></legend><bdo id='v3erc'><pre id='v3erc'><center id='v3erc'></center></pre></bdo></b><th id='v3erc'></th></span></q></dt></tr></i><div id='v3erc'><tfoot id='v3erc'></tfoot><dl id='v3erc'><fieldset id='v3erc'></fieldset></dl></div>

        如何获取当前范围/符号表中定义的所有变量?

        How to get all variables defined in the current scope/symbol table?(如何获取当前范围/符号表中定义的所有变量?)
        <i id='sqgeI'><tr id='sqgeI'><dt id='sqgeI'><q id='sqgeI'><span id='sqgeI'><b id='sqgeI'><form id='sqgeI'><ins id='sqgeI'></ins><ul id='sqgeI'></ul><sub id='sqgeI'></sub></form><legend id='sqgeI'></legend><bdo id='sqgeI'><pre id='sqgeI'><center id='sqgeI'></center></pre></bdo></b><th id='sqgeI'></th></span></q></dt></tr></i><div id='sqgeI'><tfoot id='sqgeI'></tfoot><dl id='sqgeI'><fieldset id='sqgeI'></fieldset></dl></div>

        <small id='sqgeI'></small><noframes id='sqgeI'>

              • <bdo id='sqgeI'></bdo><ul id='sqgeI'></ul>
                  <tbody id='sqgeI'></tbody>
                <tfoot id='sqgeI'></tfoot>

                • <legend id='sqgeI'><style id='sqgeI'><dir id='sqgeI'><q id='sqgeI'></q></dir></style></legend>
                  本文介绍了如何获取当前范围/符号表中定义的所有变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  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.

                  推荐答案

                  get_defined_vars

                  此函数返回一个多维数组,其中包含所有定义变量的列表,包括环境变量、服务器变量或用户定义变量,在 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.

                  这篇关于如何获取当前范围/符号表中定义的所有变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Appending GET parameters to URL from lt;formgt; action(将 GET 参数附加到来自 lt;formgt; 的 URL行动)
                  Forcing quot;Save Asquot; dialog via jQuery GET(强制“另存为通过 jQuery GET 对话框)
                  PHP - get certain word from string(PHP - 从字符串中获取某个单词)
                  How to debug a get request in php using curl(如何使用 curl 在 php 中调试 get 请求)
                  get a # from a url in php(从 php 中的 url 获取 #)
                  PHP - include() file not working when variables are put in url?(PHP - 将变量放入 url 时,include() 文件不起作用?)
                • <small id='iqKzM'></small><noframes id='iqKzM'>

                    <tbody id='iqKzM'></tbody>
                  <i id='iqKzM'><tr id='iqKzM'><dt id='iqKzM'><q id='iqKzM'><span id='iqKzM'><b id='iqKzM'><form id='iqKzM'><ins id='iqKzM'></ins><ul id='iqKzM'></ul><sub id='iqKzM'></sub></form><legend id='iqKzM'></legend><bdo id='iqKzM'><pre id='iqKzM'><center id='iqKzM'></center></pre></bdo></b><th id='iqKzM'></th></span></q></dt></tr></i><div id='iqKzM'><tfoot id='iqKzM'></tfoot><dl id='iqKzM'><fieldset id='iqKzM'></fieldset></dl></div>
                    <legend id='iqKzM'><style id='iqKzM'><dir id='iqKzM'><q id='iqKzM'></q></dir></style></legend>

                      <tfoot id='iqKzM'></tfoot>
                        <bdo id='iqKzM'></bdo><ul id='iqKzM'></ul>