Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

New lines on different OS's

Posted on 2008-10-28
1
Medium Priority
?
220 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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 receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month9 days, 3 hours left to enroll

876 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