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?

Answers were Sorted based on User's Feedback



what is nl2br?..

Answer / prantik gautam

nl2br() means newline to break. Actually when we retrieve
data from database using PHP mysql code, the nl2br()
function helps to get the format to maintain the sequence as
was at the time of insertion.

Is This Answer Correct ?    10 Yes 0 No

what is nl2br?..

Answer / rameshmjs

nl2br — Inserts HTML line breaks before all newlines in a string


Example using nl2br()
<?php
echo nl2br("foo isn't\n bar");
?>

The above example will output:

foo isn't<br />
bar

Is This Answer Correct ?    6 Yes 0 No

what is nl2br?..

Answer / 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

what is nl2br?..

Answer / abhay

nl2br is use t for new line,\
ex:echo nl2br("this is \n ddd");

output
this is
dd

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More PHP Interview Questions

How to create a session? How to set a value in session?

0 Answers  


How to Calculate Internal links & External Link in Website.(For Example YAHOO WEBSITE)

1 Answers  


How do I clear my browser session?

0 Answers  


Which is variable cost?

0 Answers  


How do I install php?

0 Answers  


Create a PHP web script with the following attributes: on start, three HTML form elements are shown: an string input field, a checkbox field, a dropdown/pull down list with 5 elements and a submit button. On submission, the form should be redisplayed (while remaining all options/inputs as the user has selected/entered them). Additionally, the selections/inputs of the user should be displayed in text. Please solve this without the use of any external libraries.

1 Answers   Wipro,


What is the Pipe Symbol represented?

0 Answers  


Explain me what are the 3 scope levels available in php and how would you define them?

0 Answers  


List some array functions in php?

0 Answers  


Name and explain five of the PHP error constants?

0 Answers  


How does cookies work in php?

0 Answers  


How to set session.gc_maxlifetime properly?

0 Answers  


Categories