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 alternative structure for control structures?
How would you declare a function that receives one parameter name hello?
How many functions are there in php?
How can you count number of parameters given in a URL by POST method?
i have saved the password in encrypted format in database. now i want how to retrive the password in decrypted format.
What are the delimiters in php?
Explain a resource?
Explain what is the difference between $var and $$var?
Tell me how is it possible to parse a configuration file?
Which programming language does php resemble to?
Why is facebook still using php?
Which function would you use to determine the length of a string in php?