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 an associative array?

1050


What is advanced php programming?

1026


What are escaping characters? Explain with an example?

953


What does explode do in php?

1009


What is the differences between $a != $B and $a !== $B?

1075


Is apache needed for php?

912


Explain me what is the use of 'print' in php?

936


Can php run without apache?

1014


What type of errors can be occurred in php?

984


What is the difference between Split and Explode in PHP?

1059


Can constructor be private in php?

1033


Are react hooks stable?

942


What is PHP's configuration file called?

1181


Can we use session in mvc?

995


What is the goto statement useful for?

1004