What is the significance of the "\r" in the source code for including links in PHP emails?

The "\r" in the source code is used to add a carriage return character in the email content. This is necessary to ensure that the links included in the email are displayed correctly and are clickable. Without the "\r", the links may not be formatted properly and may not work as expected.

// Example code snippet with "\r" for including links in PHP emails
$email_content = "Click the following link to access our website: \r\n";
$email_content .= "<a href='https://www.example.com'>Visit our website</a>";

// Additional code to send the email
$to = "recipient@example.com";
$subject = "Check out our website!";
$headers = "From: sender@example.com\r\n";
$headers .= "Content-type: text/html\r\n";

mail($to, $subject, $email_content, $headers);