1
$doc = new DOMDocument();
$doc->loadHTMLFile("https://www.tipico.com/en/wettschein/bslc-bVysdHEpshHRDMQ7E-Y5Q%3D%3D/");
$xpath = new DOMXpath($doc);
$footer = $xpath->query("//div[@class='t_foot']/div[1]/div[1]");
var_dump($footer->item(0)->nodeValue);
不應該返回48,37
?我有其他xpath查詢正在工作,但特別是這不是。DOMXpath查詢返回null
啊,我早就想過了。謝謝,它的工作原理! – Chris 2014-11-02 14:20:10
不客氣! – dfsq 2014-11-02 14:21:17