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 can we display the output directly to the browser?
How to create the PHP Script to Calculate the Age Using the Inputs Of our Birth date and the Current date?
How to get the DNS servers of a domain name?
What are escaping characters?
Explain array_uintersect()?
Where are the session values stored?
How can post form values with out press submit button
Can I learn php without knowing c?
How can we register the variables into a Session?
7 Answers HCL, Star Computers, Trikon Networks,
How to stop the execution of php script?
What is list in PHP?
What Is a Persistent Cookie?