Hmm... It works for me?

$welcome_html = "hihih [i]hihih[ei] gogogog[c]<br>fdsfdsf[ec]";
$welcome_html = eregi_replace("\[i]","<I>",$welcome_html);
$welcome_html = eregi_replace("\[ei]","</I>",$welcome_html);
$welcome_html = eregi_replace("\[c]","<center>",$welcome_html);
$welcome_html = eregi_replace("\[ec]","</center>",$welcome_html);
echo $welcome_html;

Regards,
Derek Truong
IntenseHost.com LLC        http://www.intensehost.com


"Daniel Goldin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> The following does what it's meant to do: replace [i} and [ei} with the
html
> eqivalenets.
>
> $welcome_html = eregi_replace("\[i]","<I>",$welcome_html);
> $welcome_html = eregi_replace("\[ei]","</I>",$welcome_html);
>
> Why does the following NOT work?
>
> $welcome_html = eregi_replace("\[c]","<center>",$welcome_html);
> $welcome_html = eregi_replace("\[ec]","</center>",$welcome_html);
>
> Any help gratefully appreciated.
>
> --------------------------------------------
>
> Daniel Goldin           [EMAIL PROTECTED]
> Creative Director       323.225.1926
>
>              BlueLamp Productions
>                www.blue-lamp.com
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to