RE: [PHP] eregi_replace problem
| From: | Daniel Goldin | Date: | Sun, 23 Sep 2001 00:22:21 +0000 |
| Subject: | RE: [PHP] eregi_replace problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68377@lists.php.net to get a copy of this message | ||
DSolved. Problem was a typo in other script called by this one. Many
apologies to the list.
Best,
daniel
-----Original Message-----
From: Daniel Goldin [mailto:dangoldin@earthlink.net]
Sent: Friday, September 21, 2001 9:08 PM
To: php-general@lists.php.net
Subject: [PHP] eregi_replace problem
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net