Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2003022

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

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