我目前的php代碼返回三個數組。我想將這三個數組轉換成3個逗號分隔的字符串。2個數組轉換爲逗號分割的字符串
我的陣列回聲看起來是這樣的..
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代碼片段一個數組轉換爲逗號分隔值。我將在環路我的三個陣列轉移到字符串工作..
['join' ](http://php.net/join) – deceze
@deceze但是'implode'更加戲劇化! – Leigh
@Leigh我寧願喜歡所有字符串以「加入」和諧......! :3 – deceze