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 difference between static and final in php?
What is the most convenient hashing method to be used to hash passwords?
What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods?
Does not want to see PHPSESSID in the url. How can be done this ?
Does php support multiple inheritance?
hello friend koi mujhe bata skta ke php easy way se aur jaldi kese seekh skte h...plz im waiting for ur answer..
What are hooks in php?
How to calculate the difference between two dates using php?
How many ways to include array elements in double-quoted strings using php?
What is prepared statement in php?
Why use php artisan serve?
Which function is used in php to count the total number of rows returned by any query?