<?php
$x=5;
$xy=12;
function test()
{
$x=20;
echo $x.'<br>';
$globals ['xy'];//这句错了!!!
echo $xy;
}
test();
?>我这样写是错误的,怎么才能使用$globals 的形式来引用全局变量??谢谢!!