Answer Posted / 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 |
Post New Answer View All Answers
Is php easier than javascript?
how to detect a mobile device using php
What is difference between print_r and echo in php?
Which will start a session?
Why did you choose this particular career path?
Explain about PHP cookies?
How arrays are passed through arguments?
Is json a string php?
Does php class need constructor?
Explain about the data types in PHP?
What the limitation of header() function in php?
How is session id stored in browser?
How do I install php?
How to create a text file in PHP?
What is the difference between array_map () and array_shift ()?