title: PHP Simple HTML DOM, Notice: Trying to get property of non-object
body: <p>I am getting <code>Notice:  Trying to get property of non-object</code> at:</p>
  
  <pre><code>$var = trim($article-&gt;find('span[id$=qty]', 0)-&gt;innertext);
  </code></pre>
  
  <p>$article is a <code>simple_html_dom()</code> object.</p>