$text = "<p>this is the first paragraph</p><p>this is the first paragraph</p>";
Run Code Online (Sandbox Code Playgroud)
我需要将上面的内容拆分成由段落标记分隔的数组.也就是说,我需要将上面的内容拆分为一个包含两个元素的数组:
array ([0] = "this is the first paragraph", [1] = "this is the first paragraph")
Run Code Online (Sandbox Code Playgroud)