Alternatively, you could use a container for that first, merge the contents, and in the end of having a flat one, then use implode():$letters = array();foreach ($array as $value) { $letters = array_merge($letters, $value);}echo implode(', ', $letters); 示例输出 这篇关于在PHP中放大二维数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-23 04:05