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 difference between strstr() and stristr()?

1075


Which is better python or php?

997


List some array functions in php?

932


Explain Type hinting in PHP?

1021


Why is php used for web development?

968


/temp is a type of filesystem directory. State Whether True or False?

1022


Tell me how can we get the error when there is a problem to upload a file?

999


Is php harder than javascript?

1008


What is a collection in php?

951


What is a namespace in php?

960


What is __ construct in php?

993


Does php have block scope?

964


What is foreach loop in php?

1044


What is the use of anonymous function in php?

978


What websites use php?

974