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

  • <tfoot id='S806A'></tfoot>

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

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

        如何检查 $_GET 是否为空?

        时间:2023-10-12

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

            <legend id='OGqq9'><style id='OGqq9'><dir id='OGqq9'><q id='OGqq9'></q></dir></style></legend>

              • <tfoot id='OGqq9'></tfoot>

                  <tbody id='OGqq9'></tbody>
              • <i id='OGqq9'><tr id='OGqq9'><dt id='OGqq9'><q id='OGqq9'><span id='OGqq9'><b id='OGqq9'><form id='OGqq9'><ins id='OGqq9'></ins><ul id='OGqq9'></ul><sub id='OGqq9'></sub></form><legend id='OGqq9'></legend><bdo id='OGqq9'><pre id='OGqq9'><center id='OGqq9'></center></pre></bdo></b><th id='OGqq9'></th></span></q></dt></tr></i><div id='OGqq9'><tfoot id='OGqq9'></tfoot><dl id='OGqq9'><fieldset id='OGqq9'></fieldset></dl></div>
                  <bdo id='OGqq9'></bdo><ul id='OGqq9'></ul>
                  本文介绍了如何检查 $_GET 是否为空?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何检查$_GET是否为空?

                  推荐答案

                  你自己说的,检查它是 empty:

                  You said it yourself, check that it's empty:

                  if (empty($_GET)) {
                      // no data passed by get
                  }
                  

                  看,PHP 就是这么简单.你可以简单地写下你的想法;)

                  See, PHP is so straightforward. You may simply write, what you think ;)

                  这种方法非常安全.如果 $_GET 未设置(不太可能,但可能),!$_GET 可能会给你一个未定义的变量 E_NOTICE.

                  This method is quite secure. !$_GET could give you an undefined variable E_NOTICE if $_GET was unset (not probable, but possible).

                  这篇关于如何检查 $_GET 是否为空?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:直接从 JavaScript 访问 GET? 下一篇:PHP - 带 GET 查询的加号

                  相关文章

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

                  <tfoot id='BII8t'></tfoot>

                      <bdo id='BII8t'></bdo><ul id='BII8t'></ul>
                  1. <legend id='BII8t'><style id='BII8t'><dir id='BII8t'><q id='BII8t'></q></dir></style></legend>
                    1. <small id='BII8t'></small><noframes id='BII8t'>