Onbekend |
|
<?php
$string = "<font color=\"#000000\">blaat</font>";
$string = preg_replace("#<font(.*?)>(.*?)</font>#si", "\\2", $string);
$string = preg_replace("#<font(.*?)>#si", "", $string);
$string = str_replace("</font>", "", $string);
echo $string; //geeft blaat terug
?>
<?php $string = "<font color=\"#000000\">blaat</font>"; $string = preg_replace("#<font(.*?)>(.*?)</font>#si", "\\2", $string); echo $string; //geeft blaat terug ?>
|