复制代码 代码如下:
$nodes = @$xpath->query("//*[@id='main_pr']/img/@src");
$prurl = $nodes->item(0)->nodeValue;
http://www.bkjia.com/PHPjc/313583.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/313583.htmlTechArticle复制代码 代码如下: $nodes = @$xpath-query("//*[@id='main_pr']/img/@src"); $prurl = $nodes-item(0)-nodeValue;...