グローバル変数の$aが出力されている
source <?php //1つ前のサンプルと比較すること! $a = 10; Function test() { global $a; echo $a; } test() ?>