小编Sha*_*ter的帖子

我需要拆分由paragraph标签分隔的文本

$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)

html php arrays

7
推荐指数
2
解决办法
1万
查看次数

标签 统计

arrays ×1

html ×1

php ×1