Link to home
Start Free TrialLog in
Avatar of Fernanditos
Fernanditos

asked on

Function to remove all content inside a TAG, from string

I need help with a Function to remove all content inside tags: [restrictedarea] ... [/restrictedarea] .. and the tags too.

I would appreciate if some programmer can provide me with the Function.

Thank you.
$content = "
como las superespecialidades, como la medicina deportiva, la cirugía de la mano, cirugía del pie, cirugía pediátrica, cirugía de reconstrucción articular y rehabilitación.

[restrictedarea]
Download:
Parte 1: <a href="http://www.megaupload.com/?d=DGN5W0D3">http://www.megaupload.com/?d=DGN5W0D3</a>
Parte 2: <a href="http://www.megaupload.com/?d=3HKF1H8W">http://www.megaupload.com/?d=3HKF1H8W</a>
Parte 5: <a href="http://www.share-online.biz/dl/00BF9C4644">http://www.share-online.biz/dl/00BF9C4644</a>
[/restrictedarea]

como las superespecialidades, como la medicina deportiva, la cirugía de la mano, cirugía del pie, cirugía pediátrica, cirugía de reconstrucción articular y rehabilitación.
";

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Greg Alexander
Greg Alexander
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial