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 are the functions to be used to get the image's properties (size, width and height)?
How stop the execution of a php scrip?
Differences between get and post methods?
Explain about Functions in PHP?
How many types of php frameworks are there?
Do you know what does $globals means?
Which function would you use to determine the length of a string in php?
How to get no of arguments passed to a PHP Function?
Which function is used in php to count the total number of rows returned by any query?
Difference between notify url, return url in paypal payment gateway?
4 Answers A1 Technology, Capital IQ, CMS, Essar, HCL, IAS, Karvy, L&T, State Bank Of India SBI, TATA, Tisco, WNS,
what is Opern source?
How to remove white spaces from the beginning and/or the end of a string in php?