慕粉4328149
2017-03-20 20:19
$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 这样的提示
$GLOBALS['username'];
PHP进阶篇-函数
23901 学习 · 49 问题