Basic PHP Programming Question:

What is meant by nl2br()?

Tweet Share WhatsApp

Answer:

Anwser1:
nl2br() inserts a HTML tag <br> before all new line characters n in a string.

echo nl2br("god bless n you");

output:
god bless<br>
you

Download PHP PDF Read All 139 PHP Questions
Previous QuestionNext Question
What is the difference between PHP4 and PHP5?How can we encrypt and decrypt a data presented in a table using MySQL?