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
What is a helper function?
What is the use of is_array() and in_array()?
What are static variables in php?
Explain the difference between require() and require_once()?
Which function is used in php to check the data type of any variable?
What is interface? Why it is used?
How to copy a file?
Why do you need to filter out empty files?
How can I convert ereg expressions to preg in php?
What is the use of curl()?
How to enable parsing?
What the use of var_dump()?
Do you know how can php and html interact?
Define urlencode() and urldecode() used in php?
how to use http headers inside php? Write the statement through which it can be added?