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 |
Require_once(), require(), include(). What is difference between them?
What is traits? How it is used in php?
how do we can copy of the content of a web page with the help og the URL and display them onto any other page
What is meant by variable variables in php?
What does nan stand for computer science?
What is php full form?
How to make a class in php?
Can you explain, when to use if-else if-else over switch statements?
What is the difference between $message and $$message?
12 Answers BSPL, eGrove, i-Net Solution,
What are the disadvantages of php?
Which programming language does php resemble?
What is http get and post?