title: Strange output array in Simple HTML DOM
body: <p>I have this code derived from <a href="http://simplehtmldom.sourceforge.net/manual.htm" rel="nofollow">simplehtmldom.sourceforge.net</a> (click tab scraping slashdot)</p>
  
  <pre><code>foreach($html-&gt;find('body') as $article) {
      $item[]     = $article-&gt;find('img', 1)-&gt;outertext;
      $item[]    = $article-&gt;find('img', 7)-&gt;outertext;
      $item[] = $article-&gt;find('img', 9)-&gt;outertext;
      $articles[] = $item;
  }
  
  print_r($articles);
  </code></pre>
  
  <p>It works giving me the images at the appropriate index but its also returning some strange plain text between the images like this:</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [0] =&gt; IMAGE  [1] =&gt; IMAGE [2] =&gt;  IMAGE ) ) 
  </code></pre>
  
  <p>IMAGE is the actual image being outputted</p>
  
  <p>So my question is; Why does it output like this? Is the array formatting wrong? What can I do to get rid of the plain text?</p>