3-10
$number1 = 20;
function local() //自订local函数
{
global $number1,$number2;
$number2 = 30;
echo "函数中$number1 = $number1";
echo "
";
echo "函数中\$number2 = $number2";
echo "
";
return $number2;
}
local(); //自订local函数
echo "函数中\$number1 = $number1";
echo "
";
echo "函数中\$number2 = $number2";
?>