+ 2

Hey in php how can we print rext just line wise. Without giving a line gap.

When we use <p> and </p> in PHP we get output in line wise format but it always skips a line between 2 statements.

25th Dec 2018, 3:18 PM
RITIK
5 ответов
+ 5
can u explain me a little deeper ... i didn't got question properly...
25th Dec 2018, 4:41 PM
Prashanth Kumar
Prashanth Kumar - avatar
+ 4
That is because <p> is block level element. And block level element always starts from new line. To avoid that line you can use any inline elements like <span> Example : echo "<span>Text Example 1</span>"; echo "<span>Text Example 2</span>" Or echo "<span>Text Example 1</span><br/>"; echo "<span>Text Example 2</span>"
25th Dec 2018, 3:41 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 3
Adarsh.n. Bidari He wants to print without new line. Please read the question carefully. ☺️
25th Dec 2018, 3:49 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
Glad to help 😄
25th Dec 2018, 3:46 PM
Raj Chhatrala
Raj Chhatrala - avatar
0
@ raj chhatrala thanks
25th Dec 2018, 3:43 PM
RITIK