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 easier than node?
Why many companies are switching their current business language to php?
What is instantiation?
What are the 5 types of variables?
Tell me can the value of a constant change during the script's execution?
How is it possible to set an infinite execution time for php script?
How many records can be stored in mysql table?
How do you end a session in php?
How can we convert asp pages to PHP pages?
WHat is the diff. between PHP4 and PHP5?
6 Answers Clarion Technologies, IBM, OmniNet, Sparkton Infotech,
How to access a Static Member of a Class in PHP?
Where are the session values stored?