Array to array
小帅
小帅 2019-04-12 18:02:12
0
1
873

$ data = Array (
'name' = & gt; array (1 = & gt; '123', 2 = & gt; 'cEDe', 3 = & gt; 'asdsad'),
'organization' =>array(1=>'1234',2=>'cede1',3=>'asdsad1'),
);

$data2=array(
array ('name'=>'123','organization'=>'1234'),
array('name'=>'cede','organization'=>'cede1'),
array('name'=>'asdsad','organization'=>'asdsad1'),
);
// #

小帅
小帅

reply all (1)
小帅

$res = [];
foreach ($data as $k => $v) {
$i = 0;
foreach ($v as $kk => $vv) {
$ res [$ i] [$ k] = $ vv;
$ i;
}
};

## Life lies in research. . . . . .

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!