re: strip comma from $value
| From: | Jim Long | Date: | Fri, 28 Feb 2003 17:41:34 +0000 |
| Subject: | re: strip comma from $value | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-137596@lists.php.net to get a copy of this message | ||
Hi,
Trying this:
//strip the commas from numeric array so it can sort properly-------
foreach ($numeric_array as $key => $value) {
if (ereg_replace ("," , "", $value)){
echo("comma striped");
}
}
Does the same thing as before, echo's comma stripped, but does not
actually remove the commas
THANKS.. any other ideas?
Jim Long
--