IT Placement Papers Programming PHP
This category contains PHP Interview Questions and Answers |
What is meant by nl2br()?
|
|
|
|
|
nl2br() inserts a HTML tag before all new line characters \n in a string.
echo nl2br("god bless \n you");
output:
god bless
you
Only registered users can write comments. Please login or register.
|