时间:2021-07-01 10:21:17 帮助过:15人阅读
Array
(
[strwarenum] => Array
(
[0] => 1
[1] => 1
)
[strwareid] => Array
(
[0] => 80
[1] => 79
)
)
Array
(
[config_id] =>
[strwareid] => ,78,80
[strwarenum] => ,1,1
[config_name] =>
[config_desc] =>
[diycat_id] =>
)
foreach($b as $k => $v){
$a[$k][]='';
$v=array_reverse($a[$k]);
}
var_export($b);
$arr=你的数组;
foreach($arr as &$v){
if(is_array($v)) $v=','.join(',',$v);
}
print_r($arr);