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 a query in php?

914


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

931


Is php used for frontend or backend?

1018


Explain mysql_error().

1005


Is null check in php?

1000


Is it more secure to use cookies to trfer session ids?

1008


Tell me how the result set of mysql be handled in php?

988


What’s the special meaning of __sleep and __wakeup?

1026


What is php built on?

985


How to remove blank spaces from the string?

1019


What is a session in php?

1006


Tell me how is it possible to parse a configuration file?

942


write a note on Testing the web site

1864


How to get useful error messages in php?

1063


Which is not a php magic constant?

1073