I need to remove entire select drop downs with all their options from HTML using PHP.
i assume preg replace would do it, but i don't know how to use it like that.
All the html is in a variable.
$html = "
<p> something </p>
<select name='bla' id='bla' class='REMOVE'>
<option></option>
<option></option>
<option></option>
<option></option>
</select>
<p> something </p>
<p> something </p>
";
Converted to....
$html = "
<p> something </p>
<p> something </p>
<p> something </p>
";