What potential issues can arise from using "\n" in PHP scripts?

Using "\n" in PHP scripts can lead to cross-platform compatibility issues, as different operating systems use different characters for line breaks (e.g., "\n" for Unix-based systems and "\r\n" for Windows). To ensure consistent line breaks across platforms, it's recommended to use PHP's predefined constant PHP_EOL, which represents the correct line break character for the current platform.

// Using PHP_EOL for consistent line breaks
echo "This is a line." . PHP_EOL;
echo "This is another line." . PHP_EOL;