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
How to copy a file?
What is sql injection in php?
In PHP, fgets() is used to read a file one line at a time. State Whether True or False?
what is the scope of php in the future if any other language is developed then may be php is loss ???
How do you find the length of a string in php?
What are the advantages of using php?
Is not null in php?
What is a php tag?
What is difference between session_unset and session_destroy?
How can I convert ereg expressions to preg in php?
What is full form of PHP?
Tell me how to set a page as a home page in a php based site?
Is rent a variable cost?
Is php 5.6 secure?
Explain difference between urlencode and urldecode?