//多维数组转化为字符串
$idDataList = [];
foreach($array as $v){
if(count($v['children'],0)>0){
foreach($v['children'] as $cv){
array_push($idDataList,$cv['id']);
}
}
}
dump($idDataList);
$pids =implode(',',$idDataList);
dump($pids);die;
php多维数组转化为字符串
最新推荐文章于 2022-05-28 18:43:26 发布