时间:2021-07-01 10:21:17 帮助过:8人阅读
global $param_array = array('P', 'Q', 'CR', 'LT', 'TC,M1', 'TC,M2', 'RI,M1', 'RI,M2');
$num = 123;
function aa(){
global $num;
echo $num;
}
aa();
?>
$param_array = array('P', 'Q', 'CR', 'LT', 'TC,M1', 'TC,M2', 'RI,M1', 'RI,M2');
function local(){
global $param_array;
print_r($param_array);
}
class localclass{
function run(){
global $param_array;
print_r($param_array);
}
}
print_r($param_array);
local();
$obj = new localclass();
$obj->run();