added $_FILES and $_SESSION to list of Superglobals. scope additon for $_files

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@68144 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Friedhelm Betz 2002-01-19 23:04:13 +00:00
parent 0f9ba4af4a
commit a7e36fccbd

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.31 $ -->
<!-- $Revision: 1.32 $ -->
<chapter id="language.variables">
<title>Variables</title>
@ -461,7 +461,8 @@ $bar = &test(); // Invalid.
Announcement</ulink> for more details. These are the
<varname>$_GET</varname>, <varname>$_POST</varname>,
<varname>$_ENV</varname>, <varname>$_SERVER</varname>,
<varname>$_COOKIE</varname>, and <varname>$_REQUEST</varname>
<varname>$_COOKIE</varname>, <varname>$_REQUEST</varname>
<varname>$_FILES</varname>, and <varname>$_SESSION</varname>
arrays, and they are informally known as
<emphasis>Superglobals</emphasis> since they are always
available without regard to scope. These deprecate the older
@ -598,7 +599,8 @@ $bar = &test(); // Invalid.
about files uploaded via the HTTP POST method. See <link
linkend="features.file-upload.post-method">POST method
uploads</link> for information on the contents of
<varname>$_FILES</varname>. Introduced in PHP 4.1.0.
<varname>$_FILES</varname>. Automatically global in any scope.
Introduced in PHP 4.1.0.
</simpara>
</listitem>
</varlistentry>