is tat escape sequences are used to display in new line instead of break tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

is tat escape sequences are used to display in new line instead of break tag

15th Jul 2016, 2:16 AM
Sophiya.K
Sophiya.K - avatar
2 Answers
+ 1
php output is normally a Web page = html. if u print a new line, in html this results just as a space, not a new line. to have a new line in result you have to print a break tag echo "<br>";
21st Jul 2016, 4:39 AM
Diego Zabot
Diego Zabot - avatar
0
\n will create a new line in the source code after loading the page, while <br> will print a new line to the screen so users can see that..
2nd Nov 2016, 4:08 PM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar