$arr = array(100=>array(1,3),104=>array(5,6),187=>array(32,3));
function array_key_values($arr){
foreach($arr as $k=>$_v){
array_push($_v,$k);
$_arr[]=$_v;
}
return $_arr;
}
var_dump(array_key_values($arr));
$arr = array(100=>array(1,3),104=>array(5,6),187=>array(32,3));
foreach($arr as $key=>$val){
$arr[$key][2]=$key;
}
print_r($arr);
foreach这个$arr数组.重组.