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 meant by pear in php? What is the purpose of it?
What are the features of object-oriented programming in php?
What is the different between count() and sizeof() in php?
Can we use php variable in javascript?
Explain how to run the interactive php shell from the command line interface?
How to run a php script?
What is the main difference between php 4 and php 5?
How to update memcached when you make changes to php?
Tell me what is pear?
What are the main error types in php?
What is the importance of "action" attribute in a html form?
Why do we use php?
What are sql functions?
How is it possible to parse a configuration file?
Explain about looping in PHP?