私はこのサンプル文字列を持っています。phgを使用して文字列中の文字列を配列に分割する
$string = "There four of them. These are: 1 The first one. Its is the most common. 2 The second one. 3 The third one. 4 This is the last.";
Iは上記$string
で与えられた情報を含む配列に分割したかったです。私はそれがこのように見えるようにしたい。
Array (
[0] => The first one. Its is the most common.
[1] => The second one.
[2] => The third one.
[3] => This is the last.
)
私はそれを手伝ってもらえますか?ありがとうございました。
の結果を参照してください。 –
最初の配列には2つのドット(。)が含まれています。 – Jote
このディスカッションを終了するには1つの答えを記入してください。 – Mohammad