1 print_r(a2()); 2 function a2() 3 { 4 $arr['a'] = 300; 5 foreach($arr as $k => &$v) 6 { 7 a1($v); 8 } 9 return $arr; 10 } 11 function a1(&$v) 12 { 13 $v = 100; 14 } 15 exit;
输出:
1 Array ( [a] => 100 )
会动的耳朵 |
|
||
Copyright © 2024 会动的耳朵
Powered by .NET 9.0 on Kubernetes |