[prev in list] [next in list] [prev in thread] [next in thread]
List: php-general
Subject: [PHP] re: sort comma from $value
From: Jim Long <jim () jimlong ! net>
Date: 2003-02-28 18:23:36
[Download RAW message or body]
Hi,
Figured it out.
I needed to reset my output array $numeric_array.
//strip the commas from numeric array so it can sort properly-------
foreach($numeric_array as $key => $value ) {
if(strstr($value,","))
{
$value = ereg_replace(",","", "$value");
$numeric_array[$key] = $value; //<----reset the output array
echo "comma stripped";
}
}
Thanks again for all your help,
Jim Long
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic