Are there any best practices for handling line breaks in PHP scripts to ensure consistent output formatting?

When handling line breaks in PHP scripts, it is important to use the PHP_EOL constant to ensure consistent output formatting across different operating systems. This constant represents the correct end-of-line character for the current platform, whether it is "\n" for Unix-based systems or "\r\n" for Windows systems.

// Using PHP_EOL constant to handle line breaks
echo "This is a line of text." . PHP_EOL;
echo "This is another line of text." . PHP_EOL;