php 正则替换的问题 当然不好使!你连规则串的写法都搞错了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用dom去除吧$dom = new DOMDocument;libxml_use_internal_errors(true);@$dom->loadHTML($htmlString);$xPath = new DOMXPath($dom);$nodes = $xPath->query('//*[@class="footer_left"]');if($nodes->item(0)) { $nodes->item(0)->parentNode->removeChild($nodes->item(0));}echo $dom->saveHTML();online demo:http://phpfiddle.org/main/code/cya-x7d 求助! php使用curl采集的问题 php网站路径问题 smarty里面的导入文件, <!--#include virtual="/event/index_calendar.php" --> 在ubuntu失效 问个页面定时跳转的问题 我想学PHP,谁能告诉我相关网址或相关资料? 【程序】miniSmarty发布,欢迎大家来PP 小妹想做一个论坛,希望大虾们能指教一下小妹!谢谢了! php中php.ini遇到的问题 本地浏览网页 求助!SQL语句没反应!!! 求一个固定随机数的算法
libxml_use_internal_errors(true);
@$dom->loadHTML($htmlString);
$xPath = new DOMXPath($dom);
$nodes = $xPath->query('//*[@class="footer_left"]');if($nodes->item(0)) {
$nodes->item(0)->parentNode->removeChild($nodes->item(0));
}
echo $dom->saveHTML();online demo:http://phpfiddle.org/main/code/cya-x7d