Code:
function smilies($text) { $text = ereg_replace("\[biggrin\]", "<img src=images/smilies/biggrin.gif>", $text); return $text; }
![Frown](https://www.php-resource.de/forum/core/images/smilies/frown.gif)
<? $text = "Hallo [biggrin]!"; function smilies($text) { $text = str_replace("[biggrin]", "<img src=images/smilies/biggrin.gif>", $text); return $text; } echo smilies($text); ?>
<? function smilies($text) { $text = ereg_replace("\[biggrin\]", "<img src=images/smilies/biggrin.gif>", $text); return $text; } echo smilies("Hallo [biggrin]"); ?>
$text = eregi_replace(quotemeta("<b>"),quotemeta("<b>"),$bbcode);
Kommentar