<p>In PHP, you can use the <br> tag to force line breaks in text, which is mainly used to separate text paragraphs, create lists, and format text.<p> <p>##<br>
tag in PHP
<p>
Separate different paragraphs of textprint
statement to output the <br>
tag: <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false"><code class="php">echo "<br>";</code></pre><div class="contentsignin">Copy after login</div></div>
Example<p>The following code uses the <br><p> tag to create a new line in a text string: <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false"><code class="php">$text = "This is a paragraph of text. <br>This is a new line.";
echo $text;</code></pre><div class="contentsignin">Copy after login</div></div>
Output:
<code>This is a paragraph of text. This is a new line.</code>
<p>
tag.
The above is the detailed content of What does br mean in php. For more information, please follow other related articles on the PHP Chinese website!