How can HTML tags be used to display line breaks in PHP output?
To display line breaks in PHP output, you can use the PHP `nl2br()` function to convert newline characters into HTML `<br>` tags. This function will preserve line breaks in the output and display them correctly in the browser.
<?php
// PHP code to display line breaks in output
$text = "This is a line with\na line break.";
echo nl2br($text);
?>