What is meant by nl2br()?

Answers were Sorted based on User's Feedback



What is meant by nl2br()?..

Answer / gunjan

nl2br is used to convert \n to <br>

Is This Answer Correct ?    15 Yes 1 No

What is meant by nl2br()?..

Answer / sonal

Returns string with '<br />' inserted before all newlines.

Is This Answer Correct ?    11 Yes 1 No

What is meant by nl2br()?..

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

What is meant by nl2br()?..

Answer / aashish gupta

nl2br is used to convert \n to <br>

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More PHP Interview Questions

How many days will it take to learn php?

0 Answers  


How to copy a file?

0 Answers  


Is empty in excel?

0 Answers  


How to check if a string contains a character or word in php?

0 Answers  


Is it easy to learn wordpress?

0 Answers  






What are session variables in php?

0 Answers  


How do I sort numbers in php?

0 Answers  


What is the PHP predefined variable that tells the What types of images that PHP supports?

1 Answers  


Tell me what is the difference between get and post?

0 Answers  


How long do php sessions last?

0 Answers  


Explain NULL?

0 Answers  


Whhat is a Functions

1 Answers   IQ,


Categories