php Function Nl2BR - How to Transform Newline Escape Sequences Into Br Tags
When writing a web program, it is common to add line breaks to make the text more readable on a browser. The easiest way to do this is by using the HTML tag
The nl2br() function is an inbuilt Php function which converts newline escape sequences in the string to
It takes two arguments and returns the converted string. The first argument is the string which is to be transformed and the second one is an optional parameter for determining whether or not the function will use XHTML-compliant line breaks. The default value for this parameter is set to true.
The nl2br() function will transform all the newline escape sequences in the string into