The nl2br() function inserts HTML line breaks(
)in front of each newline (\n)in a string
Syntax
nl2br(string)
Example
Output
one line
another line
The html code look like this
one line<br/>another line
)in front of each newline (\n)in a string
Syntax
nl2br(string)
Example
<?php echo nl2br("one line .\n another line"); ?> |
one line
another line
The html code look like this
one line<br/>another line
0 comments:
Post a Comment