Da traduttori professionisti, imprese, pagine web e archivi di traduzione disponibili gratuitamente al pubblico.
$globals 배열은 변수이름이 key가 되고, 그 변수의 내용이 값이 되는 원소를 가진 associative 배열이다.
?php function test() {static $count = 0; $count++; echo $count; if ($count 10) {test ();} $count--;}?
Ultimo aggiornamento 2011-10-24
Frequenza di utilizzo: 1
Qualità:
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.
Ultimo aggiornamento 2011-10-24
Frequenza di utilizzo: 1
Qualità:
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();
Ultimo aggiornamento 2011-10-24
Frequenza di utilizzo: 1
Qualità:
Attenzione: contiene formattazione HTML nascosta
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"]").
Ultimo aggiornamento 2011-10-24
Frequenza di utilizzo: 1
Qualità:
Attenzione: contiene formattazione HTML nascosta