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 php functions are there?
How to assigning a new character in a string using php?
why did u want to leave your past organisation?
How big is varchar max?
What are getters and setters php?
What types images that php supports?
How send email in php?
Why do we use csrf token?
Is php 5 still supported?
What are getters and setters and why are they important?
equivalent code for the following c program in php void main() { int i=5;printf("%d",i); }
How to get the number of visitors in a site?