How can PHP code be formatted to output with line breaks at the end of each line?
To output PHP code with line breaks at the end of each line, you can use the PHP `echo` function along with the PHP_EOL constant, which represents the end of a line in the current platform. By concatenating PHP_EOL at the end of each line, you can ensure that each line is followed by a line break when it is displayed.
<?php
echo "Line 1" . PHP_EOL;
echo "Line 2" . PHP_EOL;
echo "Line 3" . PHP_EOL;
?>