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
Where session is stored?
What is the difference between fopen() and fclose()?
How to merge values of two arrays into a single array?
What are the differences between mysqli_connect and mysqli_pconnect?
Tell us how to set cookies in php?
What is mvc in php?
What is the purpose of the '.frm' file extension? What do thes file contain?
What is warning – “cannot modify header information – headers already sent”?
When should you use a stored procedure?
Tell me how to find the position of the first occurrence of a substring in a string?
How to set a page as a home page in a php based site?
How is a session id generated?
How to parse configuration file in php?
What is the use of final class in php?
What is the correct line to use within the php.ini file, to specify that 128mb would be the maximum amount of memory that a script may use?