関数内でグローバル変数を扱うにはglobalを指定する2

グローバル変数の$aが出力されている

10
source

<?php
//1つ前のサンプルと比較すること!
$a = 10;
Function test()	{
	global $a;
	echo $a;
}
test()
?>