$ids = array_column($communications, ‘id’);//其中id 为列名,communications为需要分割的数组
$output = implode(‘,’, $ids);
$ids = array_column($communications, ‘id’);//其中id 为列名,communications为需要分割的数组
$output = implode(‘,’, $ids);
文章来源:智云一二三科技
文章标题:PHP 使用Implode分割多维数组
文章地址:https://www.zhihuclub.com/77787.shtml