note 86377 deleted from function.fputcsv by danbrown
| From: | danbrown@php.net | Date: | Wed, 15 Oct 2008 17:37:43 +0000 |
| Subject: | note 86377 deleted from function.fputcsv by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145388@lists.php.net to get a copy of this message | ||
Note Submitter: m at rcwehbi dot com
----
Please note the guy right below me made a bad mistake in his code:
The 10th line from the bottom:
if( $i++ != $field_cnt ) {
should be:
if( ++$i != $field_cnt ) {
or else it will add an extra comma at the end of every line making your csv file useless!