eregi_replace problem
| From: | Daniel Goldin | Date: | Sat, 22 Sep 2001 04:08:21 +0000 |
| Subject: | eregi_replace problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-68239@lists.php.net to get a copy of this message | ||
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 daniel@blue-lamp.com
Creative Director 323.225.1926
BlueLamp Productions
www.blue-lamp.com