quote:
Originally posted by Nathan
Meh it'd be easy for plus tags to work use this:
Depends on what you want so ill give you 2versions:
code:
$wlm_plus_tags = str_ireplace('[b]', '<b>', $wlm_plus_tags);
^^ with that way you have to close it off with another line and it doesnt check for if they've left the tag open
however the next one does
code:
$wlm_plus_tags = eregi_replace('<b>\\1</b>', '\[b]([^\[]+)\[/b]', $text);
im pretty sure people were talking about text coloring in images
also that reg exp is pure dodgyness and the parameters for eregi_replace are wrong : <
quote:
Originally posted by from php.net
string eregi_replace ( string $pattern, string $replacement, string $string )