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

How to check whether a number is prime or not?

1031


What is data structure in php?

988


What are the rules in creating php variable?

1013


How failures in execution are handled with include() and require() functions?

1013


What are the method available in form submitting?

979


How to get no. of rows using MYSQL function?

1073


What is final class and final method in php?

1024


Which function is used to strip whitespace?

956


How is php different from other languages?

859


How easy is php?

930


What is the function of trim?

919


How many data types are used by php?

972


How does the identity operator === compare two values?

1121


What does == mean in php?

957


Can php replace javascript?

980