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?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the most convenient hashing method to be used to hash passwords?

941


How can we increase execution time of a php script?

889


How do sessions work in php?

946


Does facebook use php framework?

948


What is a php array?

949


Explain what are some new features introduced in php7?

863


What is the difference between require and include in php?

1013


How to read a file in binary mode?

1047


What is static in php?

947


Explain converting an object?

962


How do you destroy a particular or all Sessions?

953


Tell us how to create an array of a group of items inside an html form?

932


What does $_server means?

923


How to download files from an external server with code in php?

848


Explain what is the difference between mysql_fetch_array() and mysql_fetch_assoc()?

854