> nl2br() in php ~ Online tutorial

nl2br() in php

The nl2br() function inserts HTML line breaks(
)in front of each newline (\n)in a string
Syntax
nl2br(string)
Example

<?php
echo nl2br("one line .\n another line");
?>

Output

one line
another line

The html code look like this 

one line<br/>
another line

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: