🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
``` $arr=[[1,2], [3,4], [5,6]]; foreach ($arr as $key => &$value){ $value[0]="a"; } print_r($arr); ``` 结果: ``` Array ( [0] => Array ( [0] => a [1] => 2 ) [1] => Array ( [0] => a [1] => 4 ) [2] => Array ( [0] => a [1] => 6 ) ) ```