What is meant by nl2br()?

Answer Posted / sreedevi

returns a string with " inserted before all newlines
nl2br() inserts html in string
ex:
echo nl2br("God bless\nu");
output:
God bless
u

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is php easier than javascript?

505


how to detect a mobile device using php

588


What is difference between print_r and echo in php?

496


Which will start a session?

578


Why did you choose this particular career path?

8352






Explain about PHP cookies?

620


How arrays are passed through arguments?

608


Is json a string php?

520


Does php class need constructor?

481


Explain about the data types in PHP?

552


What the limitation of header() function in php?

507


How is session id stored in browser?

552


How do I install php?

596


How to create a text file in PHP?

616


What is the difference between array_map () and array_shift ()?

513