UK [n'ju:laɪn] US [n'ju:laɪn]
New line, line feed (no paper feeding)
php nl2br() function syntax
Function:Insert a newline character before a new line (\n) in the string
Syntax:nl2br(string,xhtml)
Parameters:
Parameters | Description |
string | must. Specifies the string to check. |
xhtml | Optional. Boolean indicating whether to use XHTML-compatible line breaks: TRUE - Default. INSERT FALSE - Insert |
Description:on each new line (\n) in the string Insert an HTML line break (
or
) before.
php nl2br() function example
Output:
First line. Second line.