Answer Posted / rameshmjs
nl2br — Inserts HTML line breaks before all newlines in a string
Example using nl2br()
<?php
echo nl2br("foo isn't\n bar");
?>
The above example will output:
foo isn't<br />
bar
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is the most convenient hashing method to be used to hash passwords?
How can we increase execution time of a php script?
How do sessions work in php?
Does facebook use php framework?
What is a php array?
Explain what are some new features introduced in php7?
What is the difference between require and include in php?
How to read a file in binary mode?
What is static in php?
Explain converting an object?
How do you destroy a particular or all Sessions?
Tell us how to create an array of a group of items inside an html form?
What does $_server means?
How to download files from an external server with code in php?
Explain what is the difference between mysql_fetch_array() and mysql_fetch_assoc()?