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 |
Is php 5.6 secure?
Does php support multiple inheritances?
What is the difference between fopen() and fclose()?
Explain what is the static variable in function useful for?
How session manage in wordpress
What is asort php?
Tell me what is the use of mysql_real_escape_string() function?
What is the difference between runtime exception and compile time exception?
Explain what is smarty?
How to create connection in php?
What is the difference between overloading and overriding in php?
Differences between get, post and request methods ?