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 an associative array?
What is advanced php programming?
What are escaping characters? Explain with an example?
What does explode do in php?
What is the differences between $a != $B and $a !== $B?
Is apache needed for php?
Explain me what is the use of 'print' in php?
Can php run without apache?
What type of errors can be occurred in php?
What is the difference between Split and Explode in PHP?
Can constructor be private in php?
Are react hooks stable?
What is PHP's configuration file called?
Can we use session in mvc?
What is the goto statement useful for?