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 |
Is wordpress a php framework?
Tell me what is use of in_array() function in php?
What is helper function?
What is the difference between the functions UNLINK and UNSET?
Explain me the difference between include and require?
What is the functionality of the function html entities?
What are the main error types in php and how do they differ?
Which array function checks if the particular key exists in the array?
How to remove the new line character from the end of a text line?
What does nan stand for computer science?
!== represents what?
Write a program to display a table of any given number?