0
我目前有以下變量什麼是最好的方式來創建我的預期結果?從implode數據創建一個列表
當前結果:
喜喜
預期結果:
喜
喜
代碼:
implode(" ", array_column($rawSubjectsArray, 'campaign_subjects'));
我目前有以下變量什麼是最好的方式來創建我的預期結果?從implode數據創建一個列表
當前結果:
喜喜
預期結果:
喜
喜
代碼:
implode(" ", array_column($rawSubjectsArray, 'campaign_subjects'));
嘗試以下解決方法之一:
implode("\n\n", array_column($rawSubjectsArray, 'campaign_subjects'));
implode("<br/><br/>", array_column($rawSubjectsArray, 'campaign_subjects'));
串破滅(字符串$膠水,數組$件)
http://php.net/manual/en/function.implode.php
謝謝你不知道它的位置 –
嘗試 - '破滅(「\ n \ n 「,ar..'? – Kamehameha