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 |
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
How to Calculate Internal links & External Link in Website.(For Example YAHOO WEBSITE)
Is multiple inheritance supported in php?
What does echo mean in php?
Tell me in php, objects are they passed by value or by reference?
What is inheritance in php with example?
How do I make a reset button in html?
How can you declare the array in php?
Explain converting an object?
What is a php tag?
Shopping cart online validation i.e. how can we configure Paypal, etc.?
List some of the features of php7.