$store = curl_exec($ch); // Returns a page of HTML
$doc = new DOMDocument();
$doc->loadHTML($store);
$xpath = new DOMXpath($doc);
Vardump $xpath
:
object(DOMXPath)#2 (1) {
["document"] => string(22) "(object value omitted)"
}
ここで何が問題なのですか?HTMLコードでxpathを使用して情報を抽出しようとしています。
object(DOMDocument)#1 (34) {
["doctype"] => string(22) "(object value omitted)"
["implementation"] => string(22) "(object value omitted)"
["documentElement"] => string(22) "(object value omitted)"
["actualEncoding"] => string(6) "gb2312"
["encoding"] => string(6) "gb2312"
["xmlEncoding"] => string(6) "gb2312"
["standalone"] => bool(true)
...