2015-11-04 244 views
0

我目前有以下變量什麼是最好的方式來創建我的預期結果?從implode數據創建一個列表

當前結果:

喜喜

預期結果:

代碼:

implode(" ", array_column($rawSubjectsArray, 'campaign_subjects')); 
+0

嘗試 - '破滅(「\ n \ n 「,ar..'? – Kamehameha

回答

1

嘗試以下解決方法之一:

implode("\n\n", array_column($rawSubjectsArray, 'campaign_subjects')); 

implode("<br/><br/>", array_column($rawSubjectsArray, 'campaign_subjects')); 

串破滅(字符串$膠水,數組$件)
http://php.net/manual/en/function.implode.php

+0

謝謝你不知道它的位置 –