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

Is php 5.6 secure?

0 Answers  


Does php support multiple inheritances?

0 Answers  


What is the difference between fopen() and fclose()?

0 Answers  


Explain what is the static variable in function useful for?

0 Answers  


How session manage in wordpress

1 Answers   HCL, ITBS, TCS,






What is asort php?

0 Answers  


Tell me what is the use of mysql_real_escape_string() function?

0 Answers  


What is the difference between runtime exception and compile time exception?

0 Answers  


Explain what is smarty?

0 Answers  


How to create connection in php?

0 Answers  


What is the difference between overloading and overriding in php?

0 Answers  


Differences between get, post and request methods ?

0 Answers  


Categories