Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Could we start a variable with number like $4name?

974


What is session_register()?

1044


What are the encryption functions available in PHP?

1192


How check variable is set or not in php?

940


What is the use of post in php?

1024


What is difference between single quotes and double quotes in php?

958


What is mvc? Why its been used?

993


Explain about getters and setters in php?

1135


Is it possible to destroy a cookie?

1043


Is php procedural or oop?

1035


What is php and its advantages?

1007


Name some of the constants in php and their purpose.

1041


Tell me what are the different types of errors in php?

1028


Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?

1189


So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

1090