1 2 3 4 5 6 7 8
<?php function test() { $GLOBALS [ "test" ] = "value"; } test(); print ( "My variable: " . $test . "\n" ); ?>
1
My variable: value