What are common misconceptions about how PHP handles line breaks in output?

One common misconception is that PHP automatically converts line breaks in output to HTML `<br>` tags. In reality, PHP outputs line breaks as-is, so if you want to display line breaks in HTML, you need to use the `nl2br()` function to convert newline characters to `<br>` tags.

&lt;?php
$text = &quot;This is a line of text.\nThis is another line of text.&quot;;
echo nl2br($text);
?&gt;