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 are the disadvantages of php?
Use of Session
How big is varchar max?
What is the difference between explode () and split () functions in php?
how prepare the testing documentation.
Explain why would we use === instead of ==?
from which profile r you coming?
What is the difference between php traits vs interfaces?
What is the difference between html and php?
How can I use the COM components in php?
1 Answers Covansys, Rushmore Consultancy,
What is difference between require_once(), require(), include()?
What is the purpose of the following files having extensions 1) .frm 2) .myd 3) .myi? What do these files contain?