ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-spanish
php-spanish
[PHP-ES] eliminar contenido entre tag
by Roberto German Puentes Diaz other posts by this author
Oct 7 2009 12:29PM messages near this date
[PHP-ES] estrategias para evitar un Denial Of Service (D.O.S) | Re: [PHP-ES] eliminar contenido entre tag
Hola lista.

Tengo un archivo que cuando hago

$contenido = file_get_contents("$archivo");

$contenido tiene texto que esta encerrado entre dos tag como ser :

TEXTO VALIDO
TEXTO VALIDO TEXTO VALIDO
<marca> TEXTO A
ELIMINAR</marca>  TEXTO VALIDO
TEXTO VALIDO TEXTO VALIDO


Por favor notar los saltos de linea !!!
quisiera que $contenido quede asi :


TEXTO VALIDO
TEXTO VALIDO TEXTO VALIDO
TEXTO VALIDO
TEXTO VALIDO TEXTO VALIDO

Alguna idea brillante para hacer esto facil :p
-- 
Cr. Puentes Diaz
MP 10.12726.9
C�rdoba - Argentina

www.puentesdiaz.com.ar/blog/
www.puentesdiaz.com.ar/blog/novedades
www.twitter.com/puentesdiaz
Linux User n� 441474
Ubuntu/Symfony/Eclipse Rocks!

Sign for Free License for Project Zero
http://www.petitiononline.com/zerogpl/
Thread:
Roberto German Puentes Diaz
gps1mx
Jonathan Tapicer
Roberto German Puentes Diaz
Jonathan Tapicer
Roberto German Puentes Diaz

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved