In terms of my data structure, I have an array of communications, with each communications_id itself containing three pieces of information: id, score, and content.
this comment based on @jon solution , just add functional code block
but i have to use loop because array_map does not accept second parameter
function array_column_implode($data_array = array(),$key = 'id', $delimiter = ',')
{
if (function_exists('array_column'))
{
return implode($delimiter, array_column($data_array, $key));
}
else
{
$new_data_array = array();
foreach ($data_array as $value) {
if (isset($value[$key]))
{
$new_data_array[] = $value[$key];
}
}
return implode($delimiter, $new_data_array);
}
}