function test()
{
$arr = [0 => 'q', 1 => 'a'];
function test2(){
echo $arr[0];
}
test2();
}
test();
function test()
{
global $arr;
$arr = [0 => 'q', 1 => 'a'];
function test2(){
global $arr;
echo $arr[0];
}
test2();
}
test();