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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 08:01:29 2024 UTC