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

What is the difference between query and inquiry?

0 Answers  


Why is node js better than php?

0 Answers  


What is active record in php?

0 Answers  


How can we submit a form without a submit button? What is the use of obj_star?

2 Answers   Rushmore Consultancy,


What is php explain how php works?

0 Answers  






Which function is used to strip whitespace?

0 Answers  


Whhat is a Functions

1 Answers   IQ,


Does php support multithreading?

0 Answers  


Why json is used in php?

0 Answers  


What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?

0 Answers  


What is difference between array_merge and array_combine in php?

0 Answers  


What are magic constants in php?

0 Answers  


Categories