📄 reserved.variables.request.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>HTTP Request variables</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="reserved.variables.files.html">$_FILES</a></div> <div class="next" style="text-align: right; float: right;"><a href="reserved.variables.session.html">$_SESSION</a></div> <div class="up"><a href="reserved.variables.html">Predefined variables</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="reserved.variables.request" class="refentry"> <div class="refnamediv"> <h1 class="refname">$_REQUEST</h1> <p class="refpurpose"><span class="refname">$_REQUEST</span> — <span class="dc-title">HTTP Request variables</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <p class="para"> An associative <a href="language.types.array.html" class="type array">array</a> that by default contains the contents of <var class="varname"><a href="reserved.variables.get.html" class="classname">$_GET</a></var>, <var class="varname"><a href="reserved.variables.post.html" class="classname">$_POST</a></var> and <var class="varname"><a href="reserved.variables.cookies.html" class="classname">$_COOKIE</a></var>. </p> </div> <div class="refsect1 changelog"> <h3 class="title">ChangeLog</h3> <p class="para"> <table class="informaltable"> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Version</th> <th colspan="1">Description</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">5.3.0</td> <td colspan="1" rowspan="1" align="left"> Introduced <a href="ini.core.html#ini.request-order" class="link">request_order</a>. This directive affects the contents of <var class="varname">$_REQUEST</var>. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">4.3.0</td> <td colspan="1" rowspan="1" align="left"> <var class="varname"><a href="reserved.variables.files.html" class="classname">$_FILES</a></var> information was removed from <var class="varname">$_REQUEST</var>. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">4.1.0</td> <td colspan="1" rowspan="1" align="left"> Introduced <var class="varname">$_REQUEST</var>. </td> </tr> </tbody> </colgroup> </table> </p> </div> <div class="refsect1 notes"> <h3 class="title">Notes</h3> <blockquote><p><b class="note">Note</b>: This is a 'superglobal', orautomatic global, variable. This simply means that it is available inall scopes throughout a script. There is no need to do <strong class="command">global $variable;</strong> to access it within functions or methods.<br /></p></blockquote> <blockquote><p><b class="note">Note</b>: When running on the <a href="features.commandline.html" class="link">command line </a>, this will <em class="emphasis">not</em> include the <a href="reserved.variables.argv.html" class="link">argv</a> and <a href="reserved.variables.argc.html" class="link">argc</a> entries; these are present in the <var class="varname"><a href="reserved.variables.server.html" class="classname">$_SERVER</a></var> <a href="language.types.array.html" class="type array">array</a>. <br /> </p></blockquote> <blockquote><p><b class="note">Note</b>: Variables provided to the script via the GET, POST, and COOKIE input mechanisms, and which therefore cannot be trusted. The presence and order of variable inclusion in this array is defined according to the PHP <a href="ini.core.html#ini.variables-order" class="link">variables_order</a> configuration directive. <br /> </p></blockquote> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <ul class="simplelist"> <li class="member"><a href="function.import-request-variables.html" class="function" rel="rdfs-seeAlso">import_request_variables()</a></li> <li class="member"><a href="language.variables.external.html" class="link">Handling external variables</a></li> <li class="member"><a href="book.filter.html" class="link">The filter extension</a></li> </ul> </div> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="reserved.variables.files.html">$_FILES</a></div> <div class="next" style="text-align: right; float: right;"><a href="reserved.variables.session.html">$_SESSION</a></div> <div class="up"><a href="reserved.variables.html">Predefined variables</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -