+ 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.
5 ответов
+ 5
can u explain me a little deeper ...
i didn't got question properly...
+ 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>"
+ 3
Adarsh.n. Bidari
He wants to print without new line.
Please read the question carefully. ☺️
+ 1
Glad to help 😄
0
@ raj chhatrala thanks