javascript - php array splitting problem
phpcn_u1582
phpcn_u1582 2017-05-27 17:43:57
0
2
535

phpcn_u1582
phpcn_u1582

reply all (2)
PHPzhong

$arr=array(

array(1=>'A'), array(2=>'B'), array(3=>'C'), array(4=>'D'), array(5=>'A'), array(6=>'B'), array(7=>'C'), array(8=>'D'), );

$res=array();
foreach ($arr as $key => $value) {

foreach ($value as $k => $v) { $res[$v][$k]=$v; }

}
$res=array_values($res);
echo "

";print_r($res);die();

    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!