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

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

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

      从 URL 字符串中获取 GET 变量

      Get the GET variables from a URL String(从 URL 字符串中获取 GET 变量)

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

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

                <tbody id='nBa44'></tbody>
                <legend id='nBa44'><style id='nBa44'><dir id='nBa44'><q id='nBa44'></q></dir></style></legend>
              1. 本文介绍了从 URL 字符串中获取 GET 变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                嘿,假设我有一个 url 刚刚通过我的 php 传递,有没有什么简单的方法可以获取一些正在通过它传递的 GET 变量?它不是页面的实际网址或任何东西.

                Hey, say I have a url just being passed through my php is there any easy way to get some GET variables that are being passed through it? It's not the actual url of the page or anything.

                就像只是有一个包含

                http://www.somesite.com/index.php?url=var&file_id=var&test=var

                获取这些变量值的最佳方法是什么?

                Whats the best way to get the values for those variables?

                推荐答案

                parse_str(parse_url($url, PHP_URL_QUERY), $array),见手册页 parse_str 了解更多信息.

                parse_str(parse_url($url, PHP_URL_QUERY), $array), see the manpage for parse_str for more info.

                这篇关于从 URL 字符串中获取 GET 变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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() 文件不起作用?)

                  <legend id='QW2cx'><style id='QW2cx'><dir id='QW2cx'><q id='QW2cx'></q></dir></style></legend>
                    <tbody id='QW2cx'></tbody>
                  <tfoot id='QW2cx'></tfoot>

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

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

                        • <bdo id='QW2cx'></bdo><ul id='QW2cx'></ul>