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 |
write a program to print [123] [456] [789] note : braces also need to be printed
Whether site will complete the execution of the script if Fatal error occurs ?
What is the purpose of a query?
How long is csrf token?
What is file upload?
Which is not a php magic constant?
What is dao in php?
How do you define a constant in php?
How to get tabels from database in php andd display it in the table form using codelgniter? plz help me
How cookies are transported from servers to browsers?
Write a php script to get the largest key in an array?
What is faster?