【发布时间】:2012-11-24 12:41:13
【问题描述】:
我当前的 php 代码返回三个数组。我想将这三个数组转换为 3 个逗号分隔的字符串。
我的数组回显看起来像这样..
array (size=3)
0 =>
array (size=3)
0 => string '1' (length=1)
1 => string 'here' (length=4)
2 => string 'Skincare composition against free radicals' (length=42)
1 =>
array (size=3)
0 => string '2' (length=1)
1 => string 'tere' (length=4)
2 => string 'Compositions and methods for modification of skin lipid content' (length=63)
2 =>
array (size=3)
0 => string '3' (length=1)
1 => string 'fere' (length=4)
2 => string 'Method and apparatus for acne treatment' (length=39)
帮助我用一个简单的 php 代码 sn-p 将一个数组转换为逗号分隔的值。我将处理循环以将我的三个数组转换为字符串..
【问题讨论】:
-
@deceze 但是
implode更具戏剧性! -
@Leigh 我宁愿所有字符串到
join和谐...! :3
标签: php arrays string type-conversion comma