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

I get Notice: Trying to get property of non-objectat:

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

$ article is an object simple_html_dom().

+3
source share
1 answer

May be span[id$=qty]evaluated as null; means: no node found.

+2
source

All Articles