note 4623 deleted from str_replace by ronabop
| From: | ronabop@php.net | Date: | Sun, 25 Feb 2001 01:59:59 +0000 |
| Subject: | note 4623 deleted from str_replace by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11568@lists.php.net to get a copy of this message | ||
Preg_replace is almost as fast as str_replace for simple strings... Use
<PRE>$bodytag = preg_replace("/%body%/i", "black", "<body
text=%body%>");</PRE>