Solved

New lines on different OS's

Posted on 2008-10-28
1
208 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Encode a password 2 38
php image upload 3 27
PHP string issue 5 17
Help cleaning out CSS 2 29
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now