Re: fputcsv()

From: Date: Sun, 11 Apr 2004 17:29:50 +0000
Subject: Re: fputcsv()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-9044@lists.php.net to get a copy of this message
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


« previous php.internals (#9044) next »