$data=array( 'name'=>array(1=>'123',2=>'cede',3=>'asdsad'), 'organization'=>array(1 =>'1234',2=>'cede1',3=>'asdsad1'), ) =>'1234'), ;'asdsad1'), );//
$res = []; foreach ($data as $k => $v) { $i = 0; foreach ($v as $kk => $vv) { $res[$i][$k] = $vv; $i++; } };
生命在于研究。。。。。。
$res = [];
foreach ($data as $k => $v) {
$i = 0;
foreach ($v as $kk => $vv) {
$res[$i][$k] = $vv;
$i++;
}
};
生命在于研究。。。。。。