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 php ci?
What is the function in PHP do not return a timestamp?
What is helper library?
How to call php function from javascript using ajax?
Tell me how stop the execution of a php scrip?
What is the use of post in php?
Is php faster than javascript?
What is $$ in php?
What is difference between mysql_fetch_array and mysql_fetch_assoc?
How to redirect https to http url and vice versa in .htaccess?
Tell me is it possible to protect special characters in a query string?
List functions available to sort an php array?
What is cms php?
What is __ construct in php?
What does the unlink() function means?