+ 10

How to insert a line break in php?

can I insert a line break in php language.

15th Dec 2016, 8:53 AM
Sandeep Thakur
Sandeep Thakur - avatar
7 ответов
+ 3
not working
1st Apr 2017, 8:07 AM
Sandeep Thakur
Sandeep Thakur - avatar
+ 4
1 - with a html Tag like this : echo '<br>' ; or 2 - without html Tag like this : echo '\n';
15th Dec 2016, 9:05 AM
Jean-paul Reman
Jean-paul Reman - avatar
+ 1
The new line character is \n
15th Dec 2016, 9:08 AM
TechBeat
TechBeat - avatar
+ 1
\n in php or br in html
18th Dec 2016, 3:16 PM
nigel
+ 1
\n in php and <br>
18th Dec 2016, 7:19 PM
Vaibhav Tandon
Vaibhav Tandon - avatar
0
Yes you can insert a line break in PHP as Echo "<br>";
15th Dec 2016, 1:24 PM
Arjun
Arjun - avatar
0
PHP_EOL PHP end of line
16th Dec 2016, 4:29 AM
Alexei Borodin
Alexei Borodin - avatar