What is meant by nl2br()?
Answers were Sorted based on User's Feedback
Answer / sreedevi
returns a string with " inserted before all newlines
nl2br() inserts html in string
ex:
echo nl2br("God bless\nu");
output:
God bless
u
| Is This Answer Correct ? | 13 Yes | 3 No |
Answer / deepak b
The Answer is :
New Line to Html Brake <br>
function void nl2br(text,isXHTML)
if you are using xhtml then
nl2br(text,true) then function insert <br />
else
nl2br(text,false) then <br>
Enjoy..... My Friend.
| Is This Answer Correct ? | 1 Yes | 2 No |
How to concatenate two strings together in php?
Explain Booleans in PHP?
How can cross site request forgery csrf be prevented?
What are the basic steps to store PHP session in to Database?
what is the difference between GET and POST?
21 Answers AdVine, Evon Technologies, GVD Infotech, RedAlkemi, SoftSol,
What is $_session in php?
What is better .net or php?
When to use inquire vs enquire?
Explain me difference between mysql_connect and mysql_pconnect?
how we can upload and view video files
What is the output of the ucwords function in this example?
Define about declare construct?