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 |
How many days will it take to learn php?
How to copy a file?
Is empty in excel?
How to check if a string contains a character or word in php?
Is it easy to learn wordpress?
What are session variables in php?
How do I sort numbers in php?
What is the PHP predefined variable that tells the What types of images that PHP supports?
Tell me what is the difference between get and post?
How long do php sessions last?
Explain NULL?
Whhat is a Functions