Perfect, thanks. I knew there was a #define lurking around somewhere that was \r\n, \r, or \n, as appropriate, I just didn't know what it was called.

David

Andi Gutmans wrote:

How about using PHP_EOL?


At 12:33 PM 4/11/2004 -0400, David Sklar wrote:


Attached is a patch that implements fputcsv() as a complement to fgetcsv().

There are two things that still need improvement:

- It adds "\n" as a newline onto the end of each line. I think it would be better to add a platform-specific line ending.

- It is not mbstring-aware.

Any suggestions for fixing these things (or other issues) would be appreciated.

Thanks,
David

-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to