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 |
What is php pathinfo?
How many Types of COmments are there in PHP and what are they?
!== represents what?
In How many ways can u represent Not equal?Give Syntax of all ways..
What is the use of trim function in php?
How do you connet mysql database with php?
What is the difference between get and post method in php?
What is register_globals in php?
6 Answers Castling IT, HCL, Intel Soft Solutions, Millennium,
What is inheritance in php with example?
What are the Formatting and Printing Strings available in PHP?
What is final class and final method?
What are the string functions in php?