php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #12441 print line function?
Submitted: 2001-07-27 21:10 UTC Modified: 2001-08-12 15:18 UTC
From: yohgaki at hotmail dot com Assigned:
Status: Duplicate Package: Feature/Change Request
PHP Version: 4.0.6 OS:
Private report: No CVE-ID: None
 [2001-07-27 21:10 UTC] yohgaki at hotmail dot com
How about to have a print function that appends newline?

println('some string'); 
// Append "\n","\r" or "\r\n" depends on setting

If newline character(s) could be specified by php.ini entry, script would be more portable.

I think it's much cleaner than have constant (or variable) like
print('some string'.NEWLINE);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-12 15:18 UTC] sebastian@php.net
Duplicate of Bug #12428.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 11:01:28 2024 UTC