标签: php object simple-html-dom notice
我正在Notice: Trying to get property of non-object:
Notice: Trying to get property of non-object
$var = trim($article->find('span[id$=qty]', 0)->innertext);
$ article是simple_html_dom()对象。
simple_html_dom()
答案 0 :(得分:2)
也许span[id$=qty]评估为null;表示:未找到任何节点。
span[id$=qty]