How do I convert newlines to HTML line break tags?
$infowithbrs = nl2br("this\nhas\nline\nbreaks");
echo "$infowithbrs";
More strings PHP Questions
How do I make sure a string is a certain length?What is the difference between print and echo?
How do I find the last occurrence of a character in a string?
How do I turn a string into an array?
How do I remove space from the start of a PHP string?