What is meant by nl2br()?

Answer Posted / deepak b

The Answer is :
New Line to Html Brake <br>

function void nl2br(text,isXHTML)

if you are using xhtml then

nl2br(text,true) then function insert <br />
else
nl2br(text,false) then <br>

Enjoy..... My Friend.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is php.ini & .htacess file?

525


Tell me what is the difference between unset() and unlink()?

534


What is php and what does it do?

539


What does mysqli_query return?

519


Is null function in php?

566






Is echo a function in php?

507


Does php has a future?

489


What are the encryption functions available in PHP?

563


What are the different data types in javascript?

518


How to get no of arguments passed to a PHP Function?

496


Which is the dependent variable?

485


Does csrf token change?

522


Why should I store logs in a database rather than a file?

534


Explain what is smarty?

561


Can you give example for trait in php?

537