php-general | 2003022
Date: 02/28/03
- Next message: Matt Honeycutt: "RE: [PHP] re: strip comma from $value"
- Previous message: Hugh Danaher: "Re: [PHP] Spaces collapsed in database"
- Next in thread: Matt Honeycutt: "RE: [PHP] re: strip comma from $value"
- Reply: Matt Honeycutt: "RE: [PHP] re: strip comma from $value"
- Maybe reply: Jim Long: "[PHP] re: strip comma from $value"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
---- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Matt Honeycutt: "RE: [PHP] re: strip comma from $value"
- Previous message: Hugh Danaher: "Re: [PHP] Spaces collapsed in database"
- Next in thread: Matt Honeycutt: "RE: [PHP] re: strip comma from $value"
- Reply: Matt Honeycutt: "RE: [PHP] re: strip comma from $value"
- Maybe reply: Jim Long: "[PHP] re: strip comma from $value"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

