PHP 使用Implode分割多维数组

$ids = array_column($communications, ‘id’);//其中id 为列名,communications为需要分割的数组$output = implode(‘,’, $ids);

网站地图