0

How do you move to the next line in php? Like "\n" in c or endl; in c++?

tag

4th Dec 2016, 3:01 PM
Michael Jaroya
Michael Jaroya - avatar
5 odpowiedzi
+ 3
it can be done by echo $x.'<br>'.$x;
5th Dec 2016, 4:06 AM
Sandeep Chatterjee
+ 1
Using <br> tag. like in HTML but this time it's gonna be used like this: echo "<br>hello, World!"; //or putting a variable cocatenating //with <br> tag like this: $variable = "Hello, World"; echo "<br>" . $variable;
4th Dec 2016, 11:42 PM
Javier Quiroga Almeida
Javier Quiroga Almeida - avatar
0
or for example echo `x: ` .$x. `<br/>`;
4th Dec 2016, 3:13 PM
Andreas Anri Bilaj
0
begin a new HTML line with each iteration of the loop
4th Dec 2016, 3:14 PM
Andreas Anri Bilaj
0
echo nl2br ("\n")
5th Dec 2016, 5:03 AM
Yousif M