note 6877 deleted from function.ereg-replace by jimw
| From: | jimw@php.net | Date: | Fri, 02 Nov 2001 01:48:36 +0000 |
| Subject: | note 6877 deleted from function.ereg-replace by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20187@lists.php.net to get a copy of this message | ||
If you have a string $test with this info: "This...is...awesome!" and you use this
function to change the dots to spaces, you will get weird results. (NOTE: using str_replace instead
of ereg_replace solves this problem.)
<pre>
$test = str_replace("...", " ", $text);
</pre>