I am pulling text from a database and I want to print out the text and include the line returns so the text is readable and not all compressed into one paragraph.
Is this possible and if so what is the PHP function.
Thank you in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The problem you have is that you get
\nout of the database. Because HTML ignores whitespace, then those\nwill be ignored by your browser.You can use the
nl2brfunction to convert all\nto<br />tags.