+ 4
what is new line??
It is written in an example "John/n" and "/n" is used for new line. what is a new lina ?
11 Answers
+ 5
The output of "John. This is new line." is
John. This is new line
//output will be printed only in a line
The output of "John.\nThis is new line" is
John.
This is new line.
//output will be printed only in two line
//The words after \n will jump to next line...
+ 4
"\n" is an escape sequence in object oriented languages that is used to move the cursor to a new line while printing.
In its least form.."\n"-new line, is just like using the "enter" key on your computer while typing. Each time u click on "enter" the cursor goes down to a new line and whatever you type then appears on this new line.
there "\n" does exaclty the same thing.
+ 3
use br in html
+ 3
echo '<br/>';
+ 2
( \n) mean that, the next input will putted in new line.
+ 1
newline is nothing but going to next line
+ 1
\n on linux
\r on OSx
\r\n on Windows
+ 1
It Means that Cursor Will Move To Next Line
+ 1
suppose the sentence is written in a line i between them we have to cut the line and create new line so we can use \n to create a new line.
0
i am not asking for its substitute in html
0
whats its purpose