开发者

PHP Simple HTML DOM, Notice: Trying to get property of non-object

开发者 https://www.devze.com 2023-03-05 17:59 出处:网络
I am getting Notice:Trying to get property of non-object at: $var = trim($article->find(\'span[id$=qty]\', 0)->innertext);

I am getting Notice: Trying to get property of non-object at:

$var = trim($article->find('span[id$=qty]', 0)->innertext);

$article is a 开发者_如何学运维simple_html_dom() object.


Maybe span[id$=qty] evaluates to null; means: no node was found.

0

精彩评论

暂无评论...
验证码 换一张
取 消