我的数组是
Array
(
[Company] => Company
[Model] =>Model
[galleryID] => div
[gallery] => Gallery #1
[networking] => div
[Type] =>Type
[dualim] => DualIM
[era] => div
[mera] => Maera
[meraos] => Meraeos
[aper] => Aper
)
当值为“div”时如何将它分成多个数组关闭数组并生成一个新的数组
$Company = Array
(
[Company] => Company
[Model] =>Model
);
$gallery = array(
[galleryID] => div,
[gallery] => Gallery #1
);
$networking = array(
[networking] => div,
[Type] =>Type,
[dualim] => DualIM
);
$era = array(
[era] => div,
[mera] => Maera,
[meraos] => Meraeos,
[aper] => Aper,
);
我尝试使用 array_slice 和许多代码,但没有按我想要的方式提取我该怎么做?
德玛西亚99
相关分类