PHP simple dom parser select and remove multiple tags at once
<p>I'm using PHP simple dom parser <a href="http://simplehtmldom.sourceforge.net/manual.htm" rel="nofollow">http://simplehtmldom.sourceforge.net/manual.htm</a>. 
I'm able to remove a tag with a specific id by doing </p>

<pre><code>$html = str_get_html('&lt;div&gt;&lt;div class="two"&gt;two&lt;/div&gt;&lt;/div&gt;');     
$e = $html -&gt;find('.two',0);
$e-&gt;outertext = '';
echo $html -&gt;outertext;
</code></pre>

<p>Reading the simple dom api document, i see we can select multiple tags at once by including multiple classes or ids in the find function, but how can we remove all at once. </p>

<p>I tried the following but it doesn't work. It only removes the first class <code>.two</code></p>

<pre><code>$e = $html -&gt;find('.two, .three, .four');
$e-&gt;outertext = '';
echo $html -&gt;outertext;
</code></pre>
