what is nl2br?

Answer Posted / madhu

nl2br is used for new for every entry
example :
<?php
mysql_connect("localhost","root","");
mysql_select_db("databasename");
$query=mysql_query("select * from table");
while($row=mysql_fetch_assoc($query)){
$var = $row['data'];
echo nl2br($var);
?>

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of headers that PHP supports?

620


Tell me how to set a page as a home page in a php based site?

510


Php code to find whether a number armstrong or not?

547


what is session_set_save_handler in PHP?

614


What is php oops concepts?

526






What is var_dump?

585


What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?

537


Can I include php in javascript?

601


What is "print" in php?

524


What is the function used to change the root directory in PHP?

559


What are properties in php?

515


What is the difference between get & post ?

541


What is inheritance in php? How many types of inheritance supports php?

533


What is traits? How it is used in php?

551


What is php pathinfo?

581