What is meant by nl2br()?

Answers were Sorted based on User's Feedback



What is meant by nl2br()?..

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

What is meant by nl2br()?..

Answer / umapathi

next line to break tag

Is This Answer Correct ?    11 Yes 2 No

What is meant by nl2br()?..

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

Post New Answer

More PHP Interview Questions

Tell me what does $_env means?

0 Answers  


How many types of php are there?

0 Answers  


What advance thing in php7?

0 Answers  


what is code for email sending through localhost pc..?

2 Answers  


Is php front end or back end?

0 Answers  






What are the differences between session and cookie?

0 Answers  


Does session expire on closing browser?

0 Answers  


Why did you choose this particular career path?

0 Answers  


Whether One-line comment begin with pound sing(#) in php?

2 Answers  


hi, i am new for php I want to know where to create & how to run phpscript programme in LAMP?

2 Answers  


Is laravel better than codeigniter?

0 Answers  


What is the use of htmlspecialchars in php?

0 Answers  


Categories