[thelist] replacing periods with commas
ftarzwell at fayec.com
ftarzwell at fayec.com
Thu Jan 3 15:16:20 CST 2008
I have an output file that should display:
864,7 $ +8.2
Instead it's showing:
86,.7 $ +,.2
The code that does the replacement of the period for a comma is as follows:
$change = substr_replace($change, ",", strlen($change) - 3, 1);
Should the code be:
$change = substr_replace($change, ",", strlen($change) - 2, 1);
in order to fix the comma issue?
Thanks in advance for the help,
FayeC
More information about the thelist
mailing list