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

What is meant by pear in php? What is the purpose of it?

916


What are the features of object-oriented programming in php?

869


What is the different between count() and sizeof() in php?

910


Can we use php variable in javascript?

973


Explain how to run the interactive php shell from the command line interface?

1019


How to run a php script?

952


What is the main difference between php 4 and php 5?

935


How to update memcached when you make changes to php?

920


Tell me what is pear?

954


What are the main error types in php?

1011


What is the importance of "action" attribute in a html form?

977


Why do we use php?

913


What are sql functions?

902


How is it possible to parse a configuration file?

908


Explain about looping in PHP?

1021