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 meant by nl2br()?

Answers were Sorted based on User's Feedback



What is meant by nl2br()?..

Answer / gunjan

nl2br is used to convert \n to <br>

Is This Answer Correct ?    15 Yes 1 No

What is meant by nl2br()?..

Answer / sonal

Returns string with '<br />' inserted before all newlines.

Is This Answer Correct ?    11 Yes 1 No

What is meant by nl2br()?..

Answer / ram

The nl2br() function inserts HTML line breaks (<br />) in
front of each newline (\n) in a string
Syntax: nl2br(string)
<?php
echo nl2br("One line.\nAnother line.");
?>
output: One line.
Another line.

Is This Answer Correct ?    11 Yes 1 No

What is meant by nl2br()?..

Answer / aashish gupta

nl2br is used to convert \n to <br>

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More PHP Interview Questions

How can we display the output directly to the browser?

0 Answers  


How to create the PHP Script to Calculate the Age Using the Inputs Of our Birth date and the Current date?

6 Answers  


How to get the DNS servers of a domain name?

1 Answers   Life Infotech,


What are escaping characters?

0 Answers  


Explain array_uintersect()?

0 Answers  


Where are the session values stored?

1 Answers  


How can post form values with out press submit button

5 Answers  


Can I learn php without knowing c?

0 Answers  


How can we register the variables into a Session?

7 Answers   HCL, Star Computers, Trikon Networks,


How to stop the execution of php script?

0 Answers  


What is list in PHP?

0 Answers  


What Is a Persistent Cookie?

0 Answers  


Categories