how to insert next line in php? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to insert next line in php?

php

10th Aug 2020, 5:18 PM
keerthy j
keerthy j - avatar
5 Answers
+ 2
<?php echo "hello".PHP_EOL."world"; //PHP_EOL stands for PHP End Of Line character(\n)
10th Aug 2020, 5:20 PM
Ore
Ore - avatar
+ 2
I mean line by line. One sentence in one line and the next in the other line
10th Aug 2020, 5:23 PM
keerthy j
keerthy j - avatar
+ 2
thank you
10th Aug 2020, 5:27 PM
keerthy j
keerthy j - avatar
+ 1
keerthy j Use <br> tag <?php echo "hello<br>world"; //<br> stands for line break tag
10th Aug 2020, 5:25 PM
Ore
Ore - avatar