Forum Moderators: coopster
$text might contain one or multiple substrings that look like:
<mytag alt="Something here">Something else here</mytag>
What I would like to do is to grab these parts and replace them, with something like:
<div class="xyz">
<object>
<param name="movie" value="http://www.example.com/Something else here"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.example.com/Something else here" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350">
</embed></object>
<div class="zyx">Something here</div></div>
How can I go about doing this? Thanks