急:用PHP写一个函数过滤掉<p>和</p> 用PHP写一个函数过滤掉<p>和</p> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 网上有个RemoveXss的函数, 你谷歌一下, 可以实现你要的功能 $newstr = str_replace('<p>','',$yourstr);$newstr = str_replace('</p>','',$yourstr); $content = preg_replace('/<p>.*?<\/p>/is', '', $content); $test = "123<p>abc</p>456<p>def</p>789";$test = preg_replace('#<p>(.*)</p>#Ui','$1',$test);echo $test; 几个页面在IE9下都会死循环,帮忙看看是怎么回事 PHP代码很乱,有没有格式化工具? OJS开放期刊系统的首页怎么修改 谁有PHP+TXT 和 PHP+XML做的留言程序 php 刷新页面 while控制循环显示问题。一直搞不定,大家给点建议 mysql千万级查询方案 PHP查询mysql数据库时的怪问题 SQL添加问题!请大家帮忙看看! 页面之间传递数据问题,急用!!!(在线给分) 数组赋值问题? PHP上传图片文件大小的200K限制。
$newstr = str_replace('</p>','',$yourstr);
$test = "123<p>abc</p>456<p>def</p>789";
$test = preg_replace('#<p>(.*)</p>#Ui','$1',$test);
echo $test;