<?php $x=10; $y=20; function test(){ global $x,$y; # //使用global $x,$y; # $y=$x $y; } test(); echo $y;
牧云软件园
只有第一個$y是全域變數吧
只有第一個$y是全域變數吧