Code:
function smilies($text) { $text = ereg_replace("\[biggrin\]", "<img src=images/smilies/biggrin.gif>", $text); return $text; }
<? $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