mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Re-added Andrew's note about $PHP_SELF.
Added $GLOBALS to the list of predefined variables. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@73030 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2e690c3161
commit
b5e9d554a5
1 changed files with 33 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.16 $ -->
|
||||
<!-- $Revision: 1.17 $ -->
|
||||
|
||||
<!-- Note: Please do not link or translate this file yet.
|
||||
This is only an initial update, quite a few more commits will
|
||||
|
@ -269,8 +269,14 @@ follow for this appendix. -->
|
|||
<listitem>
|
||||
<simpara>
|
||||
The filename of the currently executing script, relative to
|
||||
the document root. If PHP is running as a command-line
|
||||
processor, this variable is not available.
|
||||
the document root. For instance,
|
||||
<varname>$_SERVER['PHP_SELF']</varname> in a script at the
|
||||
address <filename>http://test.com/test.php/foo.bar</filename>
|
||||
would be <filename>/test.php/foo.bar</filename>.
|
||||
</simpara>
|
||||
<simpara>
|
||||
If PHP is running as a command-line processor, this variable
|
||||
is not available.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -843,6 +849,30 @@ follow for this appendix. -->
|
|||
</simpara>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="reserved.variables.globals">
|
||||
<title>Global variables: <varname>$GLOBALS</varname></title>
|
||||
|
||||
<note>
|
||||
<simpara>
|
||||
<varname>$GLOBALS</varname> has been available since PHP 3.0.0.
|
||||
</simpara>
|
||||
</note>
|
||||
|
||||
<simpara>
|
||||
An associative array containing references to all variables which
|
||||
are currently defined in the global scope of the script. The
|
||||
variable names are the keys of the array.
|
||||
</simpara>
|
||||
|
||||
<simpara>
|
||||
This is a 'superglobal', or automatic global, variable. This
|
||||
simply means that it is available in all scopes throughout a
|
||||
script. You don't need to do a <command>global
|
||||
$GLOBALS;</command> to access it within functions or methods.
|
||||
</simpara>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 id="reserved.variables.phperrormsg">
|
||||
<title>The previous error message: <varname>$php_errormsg</varname></title>
|
||||
<simpara>
|
||||
|
|
Loading…
Reference in a new issue