title: Remove a specific image in a simple html dom scrape variable
body: <p>I've created a below foreach statement which goes through all images in $gosu_full->find('img'). However there is a specific image i want to remove which is where <code>$img-&gt;src == $gosu_img</code>. so far i've tried to set <code>$img-&gt;src</code> to a empty string and to <code>unset($img)</code> but nothing works. What can i do inorder to remove it?</p>
  
  <pre><code>foreach($gosu_full-&gt;find('img') as $img) {
                  if  (stripos($img-&gt;src,'http://www.gosugamers.net') == true) {
  
                  } else {
                      $img-&gt;src = "http://www.gosugamers.net" . $img-&gt;src;
  
  
                      if ($img-&gt;src == $gosu_img){
                          unset($img);
  
                      }
                  }
  
  
  
  }
  </code></pre>