我有這個示例字符串。使用php將字符串拆分爲數組中的字符串
$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.";
我想拆分成數組,其中包含上面$string
中給出的信息。我希望它看起來像這樣。
Array (
[0] => The first one. Its is the most common.
[1] => The second one.
[2] => The third one.
[3] => This is the last.
)
有什麼可以幫助我嗎。謝謝。
爆炸(,$字符串 「」); –
但第一個數組包含兩個點(。)s – Jote
請標記一個答案來完成此討論。 – Mohammad