De traductores profesionales, empresas, páginas web y repositorios de traducción de libre uso.
$globals 배열은 변수이름이 key가 되고, 그 변수의 내용이 값이 되는 원소를 가진 associative 배열이다.
?php function test() {static $count = 0; $count++; echo $count; if ($count 10) {test ();} $count--;}?
Última actualización: 2011-10-24
Frecuencia de uso: 1
Calidad:
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.
Última actualización: 2011-10-24
Frecuencia de uso: 1
Calidad:
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();
Última actualización: 2011-10-24
Frecuencia de uso: 1
Calidad:
Advertencia: contiene formato HTML invisible
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"]").
Última actualización: 2011-10-24
Frecuencia de uso: 1
Calidad:
Advertencia: contiene formato HTML invisible