note 25546 deleted from language.types.string by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Fri, 27 Sep 2002 21:10:59 +0000 |
| Subject: | note 25546 deleted from language.types.string by jmcastagnetto | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-37347@lists.php.net to get a copy of this message | ||
I had a problem using preg_replace with text blocks that contained dollar signs. For example
"$10,000" turn into ",000". So, I first I had to use ereg_replace to replace the
dollar signs to HTML escape characters:
$contents = ereg_replace("\$", "$", $contents);