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()?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to redirect https to http url through .htaccess?

1022


What is input sanitization in php?

1017


How to display your correct URL of the current web page?

1156


Do you know what are traits?

1067


What are the advantages and disadvantages of cascade style sheets?

1195


How to access a Static Member of a Class in PHP?

1080


What are major variables in research?

1044


What is the difference between rest and soap?

1213


Why and where do we use htaccess?

1086


What are the ways to include file in php?

1046


What is mvc in php?

1058


What is the method to execute a php script from the command line?

1097


How do you destroy a session?

965


What is php and how do you use it?

1040


What are the disadvantages of php?

1021