preg_replace替换a标签 <a href="http://" style="line-height:27px;color:#444547;margin-right:12px;display:none">更多</a>怎么写正则,要求a标签样式里出现display:none就把a标签替换成空 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $s = <<< TXT<a href="http://" style="line-height:27px;color:#444547;margin-right:12px;display:lock">更多</a><a href="http://" style="line-height:27px;color:#444547;margin-right:12px;display:none">更多</a><a href="http://" style="line-height:27px;color:#444547;margin-right:12px;">更多</a>TXT;echo preg_replace('/<a[^>]*(?=display:none).+?<\/a>/is','',$s); PHP分页查询 有没有实现这样功能的相关数组函数? ci控制器文件里面加载模块失败。 求PHP框架 phpadmin 登录后,出错404 连接服务PHP数据库 怎样实现如下功能。急问。可以给费用。 为什么我通过session认证后进入一个页面,但知道了另一个页面打入地址就能进入 怎样获得vbb的cookie中的密码,本机 href链接网络文件夹 请问如何查询包含某字符的所有记录 求用php打开本地exe文件的方法
<a href="http://" style="line-height:27px;color:#444547;margin-right:12px;display:lock">更多</a>
<a href="http://" style="line-height:27px;color:#444547;margin-right:12px;display:none">更多</a>
<a href="http://" style="line-height:27px;color:#444547;margin-right:12px;">更多</a>
TXT;
echo preg_replace('/<a[^>]*(?=display:none).+?<\/a>/is','',$s);