What is meant by nl2br()?
Answers were Sorted based on User's Feedback
Answer / sonal
Returns string with '<br />' inserted before all newlines.
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / 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 |
What is the use of die in php?
How to create an array of a group of items inside an html form?
Is laravel an oop?
How many different types of messages available in php?
Why should I store logs in a database rather than a file?
Difference between mysql_connect and mysql_pconnect?
What is the meaning of ‘escaping to php’?
What is the maximum size of a file that can be uploaded using PHP and how can we change this?
How many ways are there for passing variables between pages in PHP and what are they ?
How can I make a script that can be bilanguage (supports English, German)?
what is difference between PHP4 , PHP5
What is curl php?