来自专业的译者、企业、网页和免费的翻译库。
$globals 배열은 변수이름이 key가 되고, 그 변수의 내용이 값이 되는 원소를 가진 associative 배열이다.
?php function test() {static $count = 0; $count++; echo $count; if ($count 10) {test ();} $count--;}?
最后更新: 2011-10-24
使用频率: 1
质量:
all internal functions that call user functions must be reentrant. among other things, this means they must not use globals or static variables.
among other things, this means they must not use globals or static variables.
最后更新: 2011-10-24
使用频率: 1
质量:
if you would like to unset() a global variable inside of a function, you can use the $globals array to do so:
function foo() {unset($globals['bar']);} $bar = "something"; foo();
最后更新: 2011-10-24
使用频率: 1
质量:
警告:包含不可见的HTML格式
environment variables are normal global variables, so you must either declare them as global variables in your function (by using "global $document_root; ", for example) or by using the global variable array (ie," $globals["document_root"] ").
environment variables are normal global variables, so you must either declare them as global variables in your function (by using "global $document_root;", for example) or by using the global variable array (ie, "$globals["document_root"]").
最后更新: 2011-10-24
使用频率: 1
质量:
警告:包含不可见的HTML格式