RE: [PHP] re: strip comma from $value

2003-02-28 Thread Matt Honeycutt
hat a shot and see what happens... ---Matt -Original Message- From: Jim Long [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 12:00 PM To: php Subject: [PHP] re: strip comma from $value Hi, Thanks to those who are helping me. Matt, Same result, echo's sucess, but commas

[PHP] re: strip comma from $value

2003-02-28 Thread Jim Long
Hi, Thanks to those who are helping me. Matt, Same result, echo's sucess, but commas are still out put in the $numeric_array. Jim Long Matt Wrote: > foreach($numeric_array as $key => $value ) { > if(strstr($value,",")) > { > $value = ereg_replace(",","",$value)

RE: [PHP] re: strip comma from $value

2003-02-28 Thread Matt Honeycutt
a stripped"; } } -Original Message- From: Matt Honeycutt [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 11:56 AM To: php Subject: RE: [PHP] re: strip comma from $value ereg_replace returns a string, regardless of whether or not any replacement occured. If n

RE: [PHP] re: strip comma from $value

2003-02-28 Thread Matt Honeycutt
-- From: Jim Long [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 11:42 AM To: php Subject: [PHP] re: strip comma from $value Hi, Trying this: //strip the commas from numeric array so it can sort properly--- foreach ($numeric_array as $key => $value) { if (ereg_replace (",&qu

[PHP] re: strip comma from $value

2003-02-28 Thread Jim Long
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 THAN