21,893
社区成员




<?php
function hello(){
$a="1111";
function test(){
$b=$a; //怎么获取父function中的变量$a?
echo $b;
}
test();
}
hello();
?>
function hello(){
global $a;
$a="1111";
function test(){
global $a;
$b=$a; //怎么获取父function中的变量$a?
echo $b;
}
test();
}
hello();
function hello(){
global $a;
$a="1111";
function test(){
global $a;
$b=$a; //怎么获取父function中的变量$a?
echo $b;
}
test();
}
hello();