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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
6 - 4 = ?
Subscribe to this entry?

 
 [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 06:01:30 2024 UTC