re: sort comma from $value

From: Date: Fri, 28 Feb 2003 18:23:36 +0000
Subject: re: sort comma from $value
Groups: php.general 
Request: Send a blank email to php-general+get-137604@lists.php.net to get a copy of this message
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

« previous php.general (#137604) next »