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 difference between query and inquiry?
Why is node js better than php?
What is active record in php?
How can we submit a form without a submit button? What is the use of obj_star?
2 Answers Rushmore Consultancy,
What is php explain how php works?
Which function is used to strip whitespace?
Whhat is a Functions
Does php support multithreading?
Why json is used in php?
What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?
What is difference between array_merge and array_combine in php?
What are magic constants in php?