hoe verwijder je uit een str:

vb: $str="lol<sup>lol2</sup>"

zodat het dit wordt:

$str = "lol" , dus alles wat tussen de <sup> tag staat moet weg, samen met de sup tag zelf
<?
$str = str_replace("<sup>", "", $str);
$str = str_replace("</sup>", "", $str);
?>
zowiets??
Dan gaat enkel die tag weg ;)

Iets met 'n pattern als deze:
'<sup>(.+)</sup>'
das tog voor iets als eregi_replace ofzow??
Ja

Reageren