hi,
Ich will den string in $mystring von den <P> und </P> Tags befreien. es soll der Inhalt der Tags (text) übrig bleiben.
Warum willst du da gleich mit regulären Ausdrücken um dich ballern?
$text = str_replace('<p>', '', $text);
$text = str_replace('</p>', '', $text);
sollte doch ausreichen.
(Sofern der Tagname immer kleingeschrieben ist.)
gruß,
wahsaga
--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }