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 |
Tell me what does $_env means?
How many types of php are there?
What advance thing in php7?
what is code for email sending through localhost pc..?
Is php front end or back end?
What are the differences between session and cookie?
Does session expire on closing browser?
Why did you choose this particular career path?
Whether One-line comment begin with pound sing(#) in php?
hi, i am new for php I want to know where to create & how to run phpscript programme in LAMP?
Is laravel better than codeigniter?
What is the use of htmlspecialchars in php?