Copy code The code is as follows:
$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.htmlTechArticleCopy the code as follows: $nodes = @$xpath-query("//*[@id='main_pr ']/img/@src"); $prurl = $nodes-item(0)-nodeValue;...