title: Multiple elements in simple_dom_parser
body: <p>So I am scraping a webpage, using the html_simple_dom library. There are h5 elements which hold the title to over 50 items I am trying to get. They are not held in one class, as each title has the same class but is closed for each item. So the only option is to loop through the h5 elements or that class element. </p>
  
  <p>The problem is html_simple_dom will only give the first title and that is all. I tried to create a array and loop through them and was given this error.  <strong>Cannot use object of type simple_html_dom_node as array</strong></p>
  
  <p>I have no clue how to solve this.</p>
  
  <pre><code> &lt;?php
  
   include("simple_html_dom.php");
  
   $html=file_get_html("https://www.imdb.com/movies-in-theaters/?ref_=nv_tp_inth_1");
  
  
   $list = $html-&gt;find('h5',0);
  
   for($i = 0; $i &lt; sizeof($list); $i++){
   echo $list[$i];
   echo "&lt;br&gt;";
  }
  
  
  
  
  ?&gt;
  </code></pre>