|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11591 implode()
Submitted: 2001-06-20 17:00 UTC Modified: 2001-07-17 11:57 UTC
From: dahlberg dot tobias at telia dot com Assigned:
Status: Closed Package: Strings related
PHP Version: 4.0.5 OS: Windows 98
Private report: No CVE-ID: None
 [2001-06-20 17:00 UTC] dahlberg dot tobias at telia dot com
When I join an array with implode() or join() and use
chr(13) . chr(10) (CrLf) as delimiter I get one empty line between each line, but if I don't use CrLf then I get everything on one line.

  $dataout = implode(chr(13) . chr(10), $dataarray);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-17 11:57 UTC]
Try using just \n for the delimiter.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 08:01:32 2024 UTC