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
Whether php supports microsoft sql server?
How can we display information of a variable and readable by human with php?
Do you know is it possible to extend the execution time of a php script?
How can we change the maximum size of the files to be uploaded?
What is the use of isset() in php?
What is the use of explode() function?
Which programming language does php resemble?
Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?
Is PHP an open source software?
What is php static function?
What is php trait?
What do the initials of php stand for?
What is the difference between static and dynamic websites?
What is http php?
Why do we use htaccess and where?