title: conditional check inside a foreach is causing errors
body: <p>I am using <code>Simple_html_dom</code> trying to grab <code>Reputation points</code> and make a check on those values and then  extract only those user profiles whose <code>Repu</code> is greater that <code>200</code>. Below is the code, It works fine when doing this </p>
  
  <p>`</p>
  
  <pre><code>$html2=str_get_html($html1);
  foreach ($html2-&gt;find('.user-details') as $value) {
  
          foreach($html2-&gt;find('.reputation-score') as $repu){
  
  
                  echo (int)$repu-&gt;plaintext.$value.'&lt;br&gt;';
  
          }
          }
  </code></pre>
  
  <p><code>
  When doing the above i am getting all the</code>reputation and the user details<code>well each line, looks fine till now. But now i wanna perform a</code>conditional check<code>and then echo only those profiles whose repo is higher than</code>100`. So when i am trying the below code</p>
  
  <p>`</p>
  
  <pre><code>$html2=str_get_html($html1);
  
  foreach ($html2-&gt;find('.user-details') as $value) {
  
          foreach($html2-&gt;find('.reputation-score') as $repu){
  
                  if($repu&gt;100)
                  {
                  echo ($repu-&gt;plaintext.$value.'&lt;br&gt;';
              }
          }
          }
  </code></pre>
  
  <p>I am getting an error saying <strong>Object of class simple_html_dom_node could not be converted to int</strong>  seeing that i've tried doing <code>(int)</code> to convert and then echo still couldnt solve</p>
  
  <p>Any help here ?</p>