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 are the 3 types of sessions?
What is the difference between require and include in php?
What is the main difference between require() and include()?
Can we override static method in php?
How to copy a file?
How can you submit a form without a submit button?
What should we do to be able to export data into an excel file?
What is default session time and path in php?
what is difference between PHP4 , PHP5
Could we start a variable with number like $4name?
What are variables in research examples?
What is the meaning of a persistent cookie?
What is php routing?
Why do we use in php?
How can I prevent sql-injection in php?