我有这个示例字符串。使用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