Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2003022

[PHP] re: strip comma from $value From: Jim Long (jim <email protected>)
Date: 02/28/03

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