notice:
$username='king'; function test3() { ? ?echo '用戶名為:'.$GLOBALS[username]; } test3(); 為什么會有 Notice: Use of undefined constant username - assumed 'username' in D:\phpStudy\bbs_cyx_com\function.php on line 59 用戶名為:king 這樣的提示
$username='king'; function test3() { ? ?echo '用戶名為:'.$GLOBALS[username]; } test3(); 為什么會有 Notice: Use of undefined constant username - assumed 'username' in D:\phpStudy\bbs_cyx_com\function.php on line 59 用戶名為:king 這樣的提示
2017-03-20
舉報
2017-03-21
$GLOBALS['username'];