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
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)
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
--
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
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
5 matches
Mail list logo