Inserts HTML line breaks (<BR />) before all newlines in a string
string nl2br (string); Returns string with ” inserted before all
newlines.
will output “god
string nl2br (string); Returns string with ” inserted before all
newlines.
For example:
echo nl2br(“god bless\n you”);
will output “god
bless <br /> you” to your browser
No comments:
Post a Comment