php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dahlberg dot tobias at telia dot com
New email:
PHP Version: OS:

 

 [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);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-17 11:57 UTC] stas@php.net
Try using just \n for the delimiter.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 27 18:01:26 2020 UTC