PHP Newline
"\r\n"
Unusual Unicorn
"\r\n"
<?php
echo "Hello world this is example \r\n in php.";
echo "<br>";
echo nl2br("You will find the \n newlines in this string \r\n on the browser window.");
?>
<?php
#On some platforms, <br> is accepted, but worldwide, \n is used
?>
echo "Thanks for your email" ."<br>". "Your orders details are below:"
The nl2br() function inserts HTML line breaks (<br> or <br />)
in front of each newline (\n) in a string. Syntax. nl2br(string,xhtml).
//let a variable contain multiple line
//add <br> tag in string
$variable = "123 <br> ";