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 变量

      时间:2023-10-12

    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 变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:如何设置 $_GET 变量 下一篇:在 PHP 中的斜杠后从 URL 中获取最后一个单词

                相关文章

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

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

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