How do I convert newlines to HTML line break tags?
$infowithbrs = nl2br("this\nhas\nline\nbreaks");
echo "$infowithbrs";
Comment on this Question and Answer >>>
ASK A QUESTION
More strings PHP Questions
How can I repeat a string variable several times?I retrieve data from a Mysql database and insert it into a textfield form. The data that I retrieve have a / at the end of the string. The data in the database does not have this / in the data. How do I remove this /?
How can I remove spaces from around a string value?
How do I remove space from the start of a PHP string?
How do I turn a string into an array?
