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 |
Explain some of the php array functions?
hi..this is kumar...how m,uch time req for php preparation?is any coaching avaiable in vizag for php?
How to download the files using PHP
What is cookie and why do we use it?
What is a string in php?
What is cms php?
How is it possible to propagate a session id?
Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
What are the encryption techniques in php?
Why ide is recommended for use while programming with php?
Does php 7 support mysql?
What is the use of "enctype" attribute in a html form?