我有这个代码:
<?php
$p = 9;
$p1 = 7;
function myTest(){
static $x = 6;
var_dump($GLOBALS);
}
myTest();
?>
我有以下输出,任何人都可以帮助我理解该输出的含义:
array(7) { [“_GET”]=>数组(1) { [“_ijt”]=>字符串(26) “ahnjuf13d078eoci4stj3ke4ti” } [“_POST”]=>数组(0) { } [“_COOKIE”]=>数组(1) { [“Phpstorm-a9066f19”]=>字符串(36) “362d152a-496e-48ee-8e53-281e38eefd84” } [[“phpstorm-a9066f19”]=>字符串(36) “362d152a-496e-48ee-8e53-281e38eefd84” “_FILES”]=>数组(0) { } [“GLOBALS”]=> 递归 [“p”]=> inint(9) [“p1”]=> int(7) } 数组(7) { {“_GET”]=>数组(1) { [“_ijt”]=>字符串(26) “ahnjuf13d078eoci4stj3ke4ti” } [“_POST”]=>数组(0) { } [“_COOKIE”]=>数组(1) { { [“Phpstorm-a9066f19”]=>字符串(36) “362d152a-496e-48ee-8e53-281e38eefd84” } [“_FILES”]=>数组(0) { } [“全局”]=>递归 [“p”]=>int(9) [“p1”]=> int(7) }
拉丁的传说