Last active
August 29, 2015 14:06
-
-
Save stevenmusumeche/605a1b1c7a1819ac1710 to your computer and use it in GitHub Desktop.
Demonstrating bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fileWriter = new \League\Csv\Writer('test.txt', 'a'); | |
$fileWriter->setDelimiter("|"); | |
$fileWriter->setEnclosure(" "); | |
$fileWriter->insertOne(array('test data 1', 'test data 2')); | |
$fileWriter->insertOne(array('test data 3', 'test data 4')); | |
/** | |
result file contains double spaces | |
test data 1 | test data 2 | |
test data 3 | test data 4 | |
**/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment