How can I automatically add a line break at the end of each line in my PHP script output?

To automatically add a line break at the end of each line in your PHP script output, you can use the PHP `nl2br()` function. This function converts newlines in a string to HTML line breaks. Simply apply this function to your output before displaying it to the user.

<?php
// Your PHP script code here

// Example output with line breaks
$output = "Line 1\nLine 2\nLine 3";
echo nl2br($output);
?>