$A = ["0" => "a", "1" => "b", "2" => "c"];
$B = ["0" => "aa", "1" => "bb", "2" => "cc"]
array_walk($A,function($item) use($B){
$temp[] = $item;
$temp[] = $B[?];
});
怎么填?以上?如何获取array_walk中的当前索引?
$A = ["0" => "a", "1" => "b", "2" => "c"];
$B = ["0" => "aa", "1" => "bb", "2" => "cc"]
array_walk($A,function($item) use($B){
$temp[] = $item;
$temp[] = $B[?];
});
怎么填?以上?如何获取array_walk中的当前索引?