阅读背景:

使用DOM遍历“body”标签的所有元素

来源:互联网 
$html = file_get_contents("test.html");
$doc = new DOMDocument();
$doc->loadHTML($html);
$xpath = new DOMXPath($doc);
$body = $xpath->query('//body');
$html = file_get_contents("test.html");
$doc = 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: