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 |
Why overriding is called runtime polymorphism?
What happens when submit button is clicked?
Can I learn laravel without php?
Tell me what is the main difference between require() and require_once()?
What is the difference between super () and this ()?
what is the difference between ph4 and php5
What is fetch array in php?
Tell me how to initiate a session in php?
Write logic to print Floyd's triangle in PHP?
Is php procedural or oop?
What is the difference between session_unregister() and session_unset()?
Can php replace javascript?