Why is it recommended to use "\r\n" instead of just "\n" for line breaks in this scenario?
Using "\r\n" for line breaks is recommended in this scenario because it ensures cross-platform compatibility. Different operating systems have different conventions for line breaks - Windows uses "\r\n", Unix-based systems use "\n", and older Mac systems use "\r". By using "\r\n", you ensure that your line breaks will be displayed correctly on all platforms.
$text = "This is a line of text.\r\nThis is another line of text.";
echo $text;