php正则去掉p的方法:首先创建一个PHP示例文件;然后通过正则表达式“preg_replace("/
推荐:《PHP视频教程》
代码示例如下:
$new = preg_replace("/<p.*?>|</p>/is","", $str); var_dump($new);