Re: CSV output.
| From: | Eric Gorr | Date: | Mon, 08 Sep 2008 21:20:57 +0000 |
| Subject: | Re: CSV output. | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279701@lists.php.net to get a copy of this message | ||
On Sep 8, 2008, at 5:06 PM, Tom Shaw wrote:
Actually that won't work I tried it. For some reason the .00 shows up when I try to manually add a .00. I know weird.Did you mean to say that it .00 _doesn't_ show up when you try to manually add a .00?
The value is in the array or string before outputting printing to CSV. Number format does not work either.And just to clarify...in your .csv file, you do see values such as 234.55, but not 234.00. I can promise you that if you fprintf( $fp, "234.00" ), you will see 234.00 in your file. So, the question becomes, what _exactly_ are you doing when you are writing this stuff out.