Answer Posted / ram
The nl2br() function inserts HTML line breaks (<br />) in
front of each newline (\n) in a string
Syntax: nl2br(string)
<?php
echo nl2br("One line.\nAnother line.");
?>
output: One line.
Another line.
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
What is a query in php?
What are the advantages of object-oriented programming in php?
Is php used for frontend or backend?
Explain mysql_error().
Is null check in php?
Is it more secure to use cookies to trfer session ids?
Tell me how the result set of mysql be handled in php?
What’s the special meaning of __sleep and __wakeup?
What is php built on?
How to remove blank spaces from the string?
What is a session in php?
Tell me how is it possible to parse a configuration file?
write a note on Testing the web site
How to get useful error messages in php?
Which is not a php magic constant?