php find end of line and set <br /> code example
Example 1: nl2br() php
// add to the functions file
function translateLineBreaks($string) {
$result = nl2br ($string);
return $result;
}
Example 2: php new line
//let a variable contain multiple line
//add <br> tag in string
$variable = "123 <br> ";