标签:执行 info name 全局 current inf ber ati 作用域
w
http://php.net/manual/en/language.variables.superglobals.php
http://php.net/manual/zh/language.variables.superglobals.php
http://php.net/manual/zh/reserved.variables.globals.php
http://php.net/manual/en/reserved.variables.globals.php
Superglobals — Superglobals are built-in variables that are always available in all scopes
Several predefined variables in PHP are "superglobals", which means they are available in all scopes throughout a script. There is no need to do global $variable; to access them within functions or methods.
These superglobal variables are:
超全局变量 — 超全局变量是在全部作用域中始终可用的内置变量
(PHP 4, PHP 5, PHP 7)
$GLOBALS — References all variables available in global scope
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.
$GLOBALS — 引用全局作用域中可用的全部变量
一个包含了全部变量的全局组合数组。变量的名字就是数组的键。
标签:执行 info name 全局 current inf ber ati 作用域
原文地址:http://www.cnblogs.com/yuanjiangw/p/6677481.html