Re: removing and item out of a string
| From: | CC Zona | Date: | Wed, 07 Mar 2001 04:47:03 +0000 |
| Subject: | Re: removing and item out of a string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42852@lists.php.net to get a copy of this message | ||
In article
<5.0.2.1.2.20010306130512.09cee620@pop.internal.mindspring.com>,
doyleb@corp.earthlink.net ("Brian C. Doyle") wrote:
> I need to remove a comma from inside of 2 quotes ie "1,234.56" I need to
> change that to "1234.56"
> Unfortunatly I can not do reg_replace(",","","1,234.56");
Possibly because the function is called ereg_replace() <g>...
But since you're not doing any special pattern matching, you might as well
use a simple str_replace(',','','1,234.56') instead.
--
CC