Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
誰でもこのフォーマットを手伝ってもらえますか。データベースに (たとえば) 'black;blue;green' と書かれた段落があり、データベースからそれを呼び出し、すべての形式を ; とします。\n.
そうなる
black blue green
何か案は?
$string = str_replace(';', "\n", $string);
$str = str_replace(";", "\n", $string);
を検索し、;改行に置き換えます。
;
詳しくはこちらを参照