Solved

New lines on different OS's

Posted on 2008-10-28
1
212 Views
Last Modified: 2012-05-05
I know that some OS's use \n for a new line and some use \r.

Are there any other codes that are used for newlines on different OS's?
0
Comment
Question by:hankknight
1 Comment
 
LVL 3

Accepted Solution

by:
DarkFish earned 500 total points
ID: 22825102
If you want your newline to be acceptable on the operating system you are using, use the PHP_EOL constant.

Apart from \n, \r and \r\n I'm pretty positive those are the only three new line characters.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question