$article="[coluor=yelow]hi[/coluor]"; $article = eregi_replace("\[coluor=([^\[]*)\]","<font color=\"\1\">", $article);
I want output: <font coluor=yellow>hi[/colour]
<? $article="[coluor=orange]hi[/coluor]"; $article = eregi_replace("\[coluor=([^[]*)]","<font color=\"\\1\">", $article); $article = eregi_replace("\[/coluor]","</font>", $article); print $article; ?>
produces <font color="orange">hi</font>
Thank you toooooooooo much
You're welcome