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

How to copy a file?

1056


What is sql injection in php?

1113


In PHP, fgets() is used to read a file one line at a time. State Whether True or False?

1168


what is the scope of php in the future if any other language is developed then may be php is loss ???

14516


How do you find the length of a string in php?

968


What are the advantages of using php?

960


Is not null in php?

930


What is a php tag?

872


What is difference between session_unset and session_destroy?

1022


How can I convert ereg expressions to preg in php?

968


What is full form of PHP?

1071


Tell me how to set a page as a home page in a php based site?

916


Is rent a variable cost?

926


Is php 5.6 secure?

970


Explain difference between urlencode and urldecode?

1096